Bob,
Thanks!
Should I be embarrassed?, but I just starting playing with html and
javascript last week - my attentions so far have been tuned a bit
more to learning biophysics (grad student). But I do think I
understand your point (and later tim's), and I will play around a
little more this weekend. The odds that I will post again are quite
high, I think!
On 4/22/05, Bob Hanson <[EMAIL PROTECTED]> wrote:
>
>
> Shelley Green wrote:
>
> > Hi,
> >
> > Is it possible to not only pass a script along ot jmol using the
> > jmolradiogroup, but can you nest other javascripts and/or items like
> > "onclick= h$1 href etc"?
>
> no
>
> >
> > I would like to use a series of radio buttons to send rasmol scripts to
> > jmol. The radio buttons would be logically connected to a landau plot - and
> > the once the user selects one of the values, I would "swap" out the plot
> > with one that matched this jmol state -
> > http://www.shetlandstudios.com/grant/Sc.html Here, the "load" uses a swap
> > image on mouse click.
>
> great idea!
>
> >
> > I've tried nesting this into the jmolradiogroup with no success. My next
> > thought is to use something like > href="javascript:document.jmol.script(approp script here), along with
> > the swap image code.
> >
>
> this won't work because the applet name won't be "jmol".
>
> Shelley, I think you've hit the limitation of jmol.js. It's just not
> constructed
> to be that flexible. The easiest solution is to adapt jmol.js to your needs. I
> recommend just after your
>
>
>
> tag (by the way, you are missing those language and type parameters) add an
> ADAPTED definition of the jmol.js function that writes the radio button.
> Because
> this is not the actual function you call (note the _ at the beginning) you
> cannot just change its parameters. What I've done in this code is introduce a
> call another function you will write, doRadioScript().
>
>