hi Miguel,

thanks for the pointers; I did get the buttons to function as described.  

I am one small step away from being able to send scripts to jmol via
javascript on OSX, using the infamous Chime kludge called IMBIF.
essentially, I use javascript to write a jmol button to an invisible layer
on the page.  the button sends a script file or string of commands to
JMol.

I am stuck making the JMol button 'immediate' though - in other words,
make the button press itself as soon as it comes into existence.  in a
Chime button, the syntax would be

mode="immediate"

is there any such beast for the JMol button?  I tried state="true" but
that did not work.


thanks,

:tim

-- 
timothy driscoll
molvisions - molecular graphics & visualization
<http://www.molvisions.com/>
usa:north carolina:wake forest



at 6:12 pm EDT on (Tuesday) 18 November 2003 Miguel said:

> Tim,
> 
> Jmol supports buttons just like Chime does. In addition, there are a few
> extensions.
> 
[...]
> 
> 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
> 

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


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to