That does not work because the jmolApplet call only initiates applet loading
but does not ensure it is complete.

Just do it this way:

jmolInitialize(".","jmol/JmolAppletSigned0.jar");
jmolApplet(["520","520"], " script scripts/reset.spt;  background white;
javascript 'LoadModels()' ")


This ensures that LoadModels() is run AFTER the applet is fully completed.

-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to