Hi Angel,

Thanks - I do want to affect both applets with a single jmolScript  
call, but I cannot seem to get "all" to work. I am using Jmol 11.8.22.

So, for example, this sends the script to the second applet on the page:
<input type='radio' name='antialias' id='antialiasOn'  
onclick='jmolScript(\"quit; antialiasdisplay = true\", 1);

But this sends the script only to the first applet and not to both:
<input type='radio' name='antialias' id='antialiasOn'  
onclick='jmolScript(\"quit; antialiasdisplay = true\", all);

Frieda




On Mar 31, 2010, at 3:52 AM, Angel Herráez wrote:

> Hi Frieda
>
> I don't think you can do it for any two applets in one go. Either  
> one or all.
> I'm assuming you use Jmol.js.
>
> jmolScript() takes as its 2nd argument the ID, which may be "all".
>
> For buttons, you need to use jmolSetTarget() which I'm not sure if  
> it accepts the special "all",
> but give it a try.
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to