Angel has it exactly. Just to be clear, for ANY browser:

1) Never use jmolScript() during page loading. The applet won't be there.
2) Never run a Jmol script from the body onload event. On most browsers the
applet won't be loaded yet.
3) If possible, put whatever start-up script you want to use in the
jmolApplet() call itself.
4) If that is not possible for some reason, you have to set up the applet
with a callback and have the script in the jmolApplet() notify JavaScript
that it is working or done. That's generally unnecessary, though.

Bob



-- 
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to