>            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.

The standard 'control' functions in the Jmol.js JavaScript library
(jmolButton, jmolCheckbox, etc.) do not provide this functionality.

You can easily construct this by yourself:

0. create your jmolApplet s with names "target1" and "target2"

1. create your own html form controls:
   <input type="button" onClick="myFunction()">

2. have "myFunction" call
   jmolScript("script1", "target1")
   jmolScript("script2", "target2")



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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to