Tim,

Jmol supports buttons just like Chime does. In addition, there are a few
extensions.

Go to
  http://jmol.sf.net/preview

Do 'view source' to take a look at the soruce code.

You will see that all these are using something called JmolAppletControl

Since the JmolAppletControl is an applet, parameters are passed in the
HTML standard way for applets

<param name="<name>" value="<value>" >

Parameters are as follows:

type -> chimepush | chimetoggle | chimeradio | button | checkbox
group -> used for chimeradio
state -> on | true | pushed | checked | 1 (they are all the same)
label -> used for button
script -> script to fire when set to true
altScript -> script to fire when goes false
ButtonCallBack -> javascript to callback
 * requires mayscript=true in the <applet> tag
 * will not work with OSX

This is all that currently exists in the way of 'documentation', so just
send emails when you have more questions :-)


Miguel

> greetings!
>
> okay, I thought I saw this topic on the lists recently, but I can't find
> it in the archives.  how does one write a JMol button without javascript
> - something that sends commands (or script) to an existing JMol applet.
> this is possible, or am I hallucinating again?
>
> regards,
>
> :tim
>
> --
> timothy driscoll
> molvisions - molecular graphics & visualization
> <http://www.molvisions.com/>
> usa:north carolina:wake forest
>
>
> -------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
> _______________________________________________
> Jmol-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers


--------------------------------------------------
Miguel Howard                   [EMAIL PROTECTED]
c/Pe�a Primera 11-13 esc dcha 6B
37002 Salamanca
Espa�a Spain
--------------------------------------------------
telefono casa 923 27 10 82 movil 650 52 54 58
--------------------------------------------------
To call from the US dial    9:00 am Pacific US   =
home 011 34 923 27 10 82   12:00 noon Eastern US =
cell 011 34 650 52 54 58    6:00 pm Spain
--------------------------------------------------




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to