Wrapping the radio button call in a form fixes it! Thanks.

A caution though. If I understand things correctly, one cannot have nested forms. Therefore when you come up with an "automagic" fix, be sure that the user doesn't call your function in the context of their own form. Not sure how to achieve that. Plus, those of us who have nested the call in a form will likely get "broken."

Thanks again,

Craig

Message: 2
Date: Sun, 14 Nov 2004 15:13:31 -0500 (EST)
Subject: Re: [Jmol-users] jmolRadioGroup and Safari on the Mac
From: "Miguel" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

Craig wrote:

The function jmolRadioGroup is not working perfectly on the Mac (10.3.6=
,
Safari latest). In particular, the buttons run the appropriate script
commands, but the inactive button does not visually =22inactivate.=22 I=
n other
words, pushing the inactive button lights that one up, but does not tur=
n
off the other. From then on, both remain =22lit.=22

After some investigation I have found the source of this problem.

It is caused by not having <form> ... </form> tags surrounding your
buttons/controls in your html file.

For the =5Binput=5D control fields to work properly on Safari one *must* =
have
them embedded inside =5Bform=5D tags. This was the original HTML spec. La=
ter,
most other browsers relaxed this constraint. Safari/Konqueror did not.

One can easily address this problem by wrapping the entire contents of
your file inside =5Bform=5D tags

=5Bbody=5D
=5Bform=5D
...

=5B/form=5D
=5B/body=5D
=5B/html=5D

Once before I tried to come up with a scheme to do this automagically ...=

I will give it some more thought.


Miguel


Craig Martin
Chemistry, LGRT 701       545-3299

http://www.chem.umass.edu/~cmartin


------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to