From: alok v. <alo...@gm...> - 2005-08-09 17:49:40
|
HI jmolSetTarget("all") is not working. All controls after this command don't work. Regards Alok On 7/26/05, Miguel <mi...@jm...> wrote: > > Is there a way to apply same control settings to > > multiple applets. I mean control settings like > > spin on, cpk 100%. So I am imagining one control > > bar at the bottom and when I switch on the spin on > > it, all applets on the page also have the spin on. >=20 > Alok, >=20 > Try the attached Jmol.js file. > It will require a relatively recent prerelease of Jmol > 10.00.20 >=20 > Normally, one says >=20 > jmolSetTarget("Applet2Name"); >=20 > or >=20 > jmolSetTarget(0); // send to jmolApplet 0 ... first on the page > jmolSetTarget(3); // send to jmolApplet 3 ... 4th on the page >=20 >=20 > With this version of Jmol.js you can say >=20 > jmolSetTarget("all"); >=20 > All jmolButton/jmolCheckbox/jmolScript/jmolRadioGroup/jmolMenu calls afte= r > that point will be directed to all of the applets that appeared staticall= y > in the file before the control. >=20 >=20 > Let me know if you have troubles. >=20 >=20 > Miguel >=20 >=20 > |