From: Rolf H. <rh...@fl...> - 2010-11-25 16:39:44
|
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 |