What you want is to execute your **Javascript** code from within 
Jmol.

>  var script = "load 1dwd.pdb; ......"; 
>  var model = "radio 1"; 
> var signal = "on"; 
> jmolRadio(script+"javascript:signal = 'off';", model, false, "&nbsp "); 

Alternatively (depending on what you want to do and how you want to 
control the value of your "signal"), you could use JmolScript instead 
of JavaScript. For that, you define a variable in Jmol. But that's a 
bit more tricky than using javascript.



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to