From: Miguel <mi...@jm...> - 2005-01-21 12:54:42
|
> 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 =22target1=22 and =22target2=22 1. create your own html form controls: <input type=3D=22button=22 onClick=3D=22myFunction()=22> 2. have =22myFunction=22 call jmolScript(=22script1=22, =22target1=22) jmolScript(=22script2=22, =22target2=22) Miguel |