I have a
JSP page that contains the following code (among a lot of other stuff):
The startLewisSketch() method resides in ../js/appletStart.js. The page works by loading the LewisSketch
applet, and then, after it is loaded, the page is supposed to call the loadMol() method, which calls LewisSketch and sets its value.
All of this works fine in the version of Safari that I am running (5.0.6, MacOS 10.5.8), but sometimes a Javascript error occurs on more recent versions of Safari and MacOS:
When this error occurs, the methods subsequent to loadMol() in the body onload property do not run.
It appears to me that there's a problem with the timing of the applet load and the body onload in some versions of Safari. Any ideas how I can solve the problem or work around it?