Check if Marvin Sketch applet loaded via Javascript

User 873a9ae9d0

09-11-2010 23:35:33

Hi,


I embed MarvinSketch in a html page using an Applet tag.


Of course the load of the applet can take some time.


I am looking for a reliable way (that should work for both IE,Firefox and Safari) to check via a Javascript function if the loading of the applet is completed or not.


Purpose is to perform that check before I do any subsequent calls such as Get/SetMol etc.


I learned from other forum entries that there is a molLoaderFinishedEvent. In my case the Sketcher canvas is empty at startup i.e. I assume this event does not work for me.


Hope someone can help.
Regards
Hans-Juergen


 


 


 


 

ChemAxon 7c2d26e5cf

10-11-2010 10:28:35

Pass an empty molecule in applet parameter to the sketcher. In this case, the molLoaderFinished event will be invoked.