I see the problem, I need to put "all" in quotes. (I had tried that earlier without success, works now...)
Further question: When I rename the applet suffixes instead of using the default names (that is, I specify a suffix, "rho" for example, instead of the default numbering Jmol uses), I am getting a Javascript alert that Jmol cannot find Applet0. This message appears only on the first time I click the button. Any ideas? Frieda On Mar 31, 2010, at 9:01 PM, Frieda Reichsman wrote: > 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® 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 >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/jmol-users > > > ------------------------------------------------------------------------------ > Download Intel® 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ Download Intel® 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

