Brian, I suspect your latest problem may be due to lack of syncronization. That
is, when the
page contains several applets, they take some time to load, in parallel. Then
the scripts may
be called after some applets but before others. So some of the scripts will
fail. It can also
depend on the browser, or even when you reload the page the problem may appear
or not
at different applets.
The safest way is to call the script from the same jmolApplet call, not using
jmolScript. Or
have the jmolScript be called by a user action, hence delayed till after the
page has loaded
all the applets.
So if per chance you are using something like
<script type="text/javascript">
jmolApplet(200, "load MODELS ({0}) jmol/pdb1as5.pdb;", "1");
jmolScript(script jmol/Gcolors1.txt)
</script>
change to
<script type="text/javascript">
jmolApplet(200, "load MODELS ({0}) jmol/pdb1as5.pdb; script
jmol/Gcolors1.txt", "1" );
</script>
Is that the case?
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users