User 276402c609
30-10-2007 23:07:03
I am stuck with such problem - MarvinSketch hangs web browsers very often. I have cleared JRE cache, it doesnt help. The first thing I did, I enabled console as thought that it could help detect the problem. It didnt, because when applet hangs console is not responding and refreshing.
But I have noticed that applet hangs if the page contains the structure which must be loaded. I made an experiment:
the web page contains msketch_param("mol", "c"); and msketch_param("molLoaderFinishedEvent", "js:loadStructure();");
The javascript procedure loadStructure() actually is the loader because its
using the setMol() to load the real structure from hidden text field.
Now the problem is almost eliminated. Almost, because the "c" sometimes is visible (not always) for arround 1 sec till the real structure is loaded.
Is it possible to load empty structure, for exaple, setMol(" ") so that molLoaderFinishedEvent is triggered? Because if setMol(" ") never triggers molLoaderFinishedEvent I cant use this workaround as my procedure loadStructure() is called via molLoaderFinishedEvent.
But I have noticed that applet hangs if the page contains the structure which must be loaded. I made an experiment:
the web page contains msketch_param("mol", "c"); and msketch_param("molLoaderFinishedEvent", "js:loadStructure();");
The javascript procedure loadStructure() actually is the loader because its
using the setMol() to load the real structure from hidden text field.
Now the problem is almost eliminated. Almost, because the "c" sometimes is visible (not always) for arround 1 sec till the real structure is loaded.
Is it possible to load empty structure, for exaple, setMol(" ") so that molLoaderFinishedEvent is triggered? Because if setMol(" ") never triggers molLoaderFinishedEvent I cant use this workaround as my procedure loadStructure() is called via molLoaderFinishedEvent.