Re: [Jmol-users] multiple applets on the page

2010-04-04 Thread Angel Herráez
Hi Frieda > I am getting a Javascript > alert that Jmol cannot find Applet0. By using custom names you probably need to specify the applet ID always, using the target parameter in jmolScript or the jmolSetTarget() command for buttons etc. > This message appears only on the > first time I

Re: [Jmol-users] multiple applets on the page

2010-04-01 Thread Robert Hanson
Frieda, you need to sync the applets using the syncScript option. Simplest way is to interact only with one applet ,and then use: jmolScript('sync . ON;sync > SLAVE;set syncScript on ') This turns sync ON for the applet being sent the code, makes the other applet a follower only, and sets the sc

Re: [Jmol-users] multiple applets on the page

2010-03-31 Thread Frieda Reichsman
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

Re: [Jmol-users] multiple applets on the page

2010-03-31 Thread Frieda Reichsman
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: one or all. > I'm assuming you use Jmol.js. > > jmolScript() takes as its

Re: [Jmol-users] multiple applets on the page

2010-03-31 Thread Angel Herráez
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

[Jmol-users] multiple applets on the page

2010-03-30 Thread Frieda Reichsman
Hi, can someone please remind me of how to tell a button to send its script to more than one Jmol applet, and/or to all Jmol applets on a page? I know this is documented somewhere... Thanks, Frieda - Frieda Reichsman, PhD Senior Research Scientist The Concord Consortium http://concord.org