> Hi,
>
> I want to use html checkboxes to toggle eg. ribbons on or off. So, when
> checked, ribbons are on, when unchecked, ribbons are off.
> I'm writing the html page in plain html after loading the applet with
> <applet>...</applet>. This is the most convenient way for me since I will
> have to generate pages on the fly.
>
> Right now I use a javascript to execute jmol scripts from a website listed
> a Wiki. The functionality looks something like this:
> ----------
> <script LANGUAGE="JavaScript" TYPE="text/javascript">
> function scriptMe(command){
> document.jmol.script(command);
> }
> </script>
>
> .
> .
> .
> .
>
> <input type ="button" name="color" value="By chain"
> onClick="scriptMe('select *; color chain;')"/>
> -------------
>
> Now, can I use checkboxes in the same way? If not in the same way ...
> another way? ;-)
> Thanks in advance!
>
> Joost
I am in a hurry and cannot read your code in detail at this time ...
I strongly recommend that you use the Jmol.js JavaScript library.
You can still generate pages on the fly that reference this library.
If you decide that is not the right choice for you, then look at the
Jmol.js source code for an example of how to use checkboxes.
Miguel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users