no, please! not WHILE!

just use

Jmol.scriptWait()


That's what it is for.


On Wed, Sep 2, 2015 at 5:32 AM, Angel Herráez <angel.herr...@uah.es> wrote:

> 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
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
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