[Jmol-users] Re: two targets on the same page
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 what you meant? Hens Hi Is there any way to send a command (script) to two different jmolapplets on the same page by the way of one single button, radio group, checkbox or menu ? Or even better send to different commands to two applets on the same page? I have tried several synthaxes but I couldn't get it. Hervé --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] Re: two targets on the same page
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 are available in Jmol.js as jmolCheckbox('script-when-checked', 'script-when-unchecked', 'label-name', booleanIsCheckedByDefault); Miguel --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users