On 11/25/2010 05:17 PM, Otis Rothenberger wrote:
> Thanks Alexander (and Bob). What a neat trick!
>
> Just for the record, my context was a Jmol variable, etv, that was set
> in a JavaScript loop that used Jmol FIND to locate a SMILES in a
> JavaScript array. A subsequent:
>
> jmolScriptWait('var foo = etv;'); msg = jmolEvaluate("script('echo
> @foo;echo;')");
> alert(msg);
>
> works beautifully. The second echo is just to make the first echo disappear.
>
Couldn't you use 'print @foo' instead of the two 'echo' commands,
avoiding to show something in the Jmol window the user isn't supposed to
see there anyway? Or is there a problem with 'print' in this context?
Regards,
Rolf
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users