Dear Eric,

It could be asynchrony among scripts, but also could be that the Jmol object has not finished being created.

In _javascript_, you could try enclosing the evaluate script within a waiting loop, e.g. (I hope I have the syntax right)

do {

altLocKeys = Jmol.evaluateVar(jmolApplet0, "altlocpivotkeys");

} while ( !altLocKeys !!  altLocKeys.length==0 );

alert(altLocKeys.length +" "+typeof(altLocKeys)+"\n"+altLocKeys);


Be careful, as these loops may hang the browser if not properly set.

 

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to