Quoting Eran Hodis <[EMAIL PROTECTED]>:

> In the Jmol scripting language, is there a syntax that would allow you to
> use the "javascript" command with a variable as the argument?
> javascript "alert('hi')"             --- sends "hi" to my browser
>
> but,
>
> tempvar = "alert('hi')";
> javascript tempvar                 ---- does nothing
>

If you add the "@" sign to the variable name it works (at least with  
Jmol 11.3.39):

javascript @tempvar

Regards,
Rolf


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to