jmolInitialize("../jmol","JmolApplet.jar");
jmolApplet(["300","300"]);
var script = 'load "Structures/molecule4.pdb"';
jmolScript(script);
Well, you can't do that. You are running a script before the applet is
loaded. I wish there were an automatic way to avoid that, but there isn't.
You just can't fire a script at a loading applet. It won't get it. Maybe the
second time the page is loaded, with some machines, it will work, because
the second time the applet is locally cached and will load quickly.
You MUST do this:
jmolInitialize("../jmol","JmolApplet.jar");
jmolApplet(["300","300"],'load "Structures/molecule4.pdb"')
This also works:
function testnow() {
alert("testnow")
}
</script>
...
<script type="text/javascript">
JmolApplet([300,300],'set loadstructcallback "testnow";zap')
</script>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users