Summary
-------
In order for radio buttons to work properly on Safari OSX, all <input ...>
fields *must* be included within <form> </form> tags.

This applies to the jmolRadioGroup() function that is part of the Jmol.js
JavaScript Library.

One can generally put a <form> tag immediately after the <body> tag and a
</form> tag immediately before the </body> tag and this will eliminate the
problem.

Netscape 4.7* has the same requirement regarding the form/input hierarchy.
Therefore, if you consistently code your pages using the <form> tag then
your pages should operate properly with Safari and with Netscape 4.7


Detail
------
Jaime reported a problem with radio button behavior on Safari. When he
clicked on a non-selected radio button within the group it would lite up
... as it should. However, the previously lit button would remain hilit
... it should turn off.

I have tracked this down as a Safari problem. It doesn't have anything to
do with the Jmol.js library.

For radio button groups to work properly, you *must* enclose your <input
...> statements with <form> tags.

For a demonstration of this go to http://www.jmol.org/safariradio

IE and Mozilla/Netscape 7.* do not have this requirement. Old Netscape
4.7* does have this requirement.

The Jmol.js library cannot output these tags automatically because some
browsers will output a <br /> when they see a <form> tag. Therefore, users
would lose control over layout.

Therefore, I suggest that people get in the habit of coding their pages by
putting a <form> tag immediately after their <body> tag and putting a
</form> tag immediately before their </body> tag.

Other comments:
 - Konqueror may have the same requirement, since Safari is based upon
Konqueror
 - It is not clear to me whether or not this is a violation of the HTML
specification. The fact is that the major browsers do not require it, but
Safari does.
 - Since the major browsers do not require it, many/most html coders will
not do it. Therefore, Safari users will keep having problems with various
web sites indefinately into the future.
 - Anyone who uses safari should consider filing a bug report.


Miguel





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to