You're fine. It isn't a callback *from Jmol*. Your use is from a browser
event. That's just standard procedure. And the use is very different --
evaluateVar() doesn't generally execute commands (unless the script()
function is called).

Be aware that if another script is running, Jmol.scriptWait() has to ignore
that and just but right in. That's the real issue.

If you are ignoring the return, use Jmol.script(), not Jmol.scriptWait().



On Mon, Feb 8, 2016 at 11:02 AM, Dave Howorth <dhowo...@mrc-lmb.cam.ac.uk>
wrote:

> On 2016-02-08 15:51, Robert Hanson wrote:
> > Pretty sure this is just the need to use
> >
> >     var errors = Jmol.ScriptWait(myJmol, jmol_script);
>
> Thanks Robert. After correcting the typo to Jmol.scriptWait that seems
> to work. I wasn't using it because of what it says at:
>
> http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Functions#scriptWait
>
> "NOTE: When using JSmol/Java do not call this method from a callback
> directly, as it may result in Java thread lock, causing the entire
> browser to hang.
>
> Always consider using evaluateVar() instead of scriptWait."
>
> Since I am calling it in a callback, should I be worried?
>
> And can I safely ignore the return value, which appears to be a sequence
> of apparently random status messages?
>
> Thanks, Dave
>
> > not
> >
> >      var errors = Jmol.evaluateVar(myJmol, jmol_script);
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&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
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to