[Jmol-users] Re: two targets on the same page

2005-01-21 Thread Hens Borkent
Hervé, Let your button call a javascript function, and in this function you send any script to any applet you like document.jmol1.script('script1...'); document.jmol2.script('script2...'); In this way one can construct toggle buttons as well, which I don't find in the current jmol.js Is this

Re: [Jmol-users] Re: two targets on the same page

2005-01-21 Thread Miguel
Henw wrote: document.jmol1.script('script1...'); document.jmol2.script('script2...'); Or, using Jmol.js one can call: jmolScript('script1', 1); jmolScript('script2', 2); In this way one can construct toggle buttons as well, which I don't find in the current jmol.js These 'toggle' buttons