[thelist] Radio Button Value Property Does Not Exist in Netscape 6.1?

.jeff jeff at members.evolt.org
Mon Oct 29 15:19:20 CST 2001


gregory,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: gregory.john.toland at census.gov
>
> Problem solved!  I received this from a gentlemen on
> a Javascript email list.
>
> "change id="txtStep1" to id="txtStep1[]" and it works
> in NS4,6,IE5 ...
>
> ...because "txtStep1" is the name of an array, and NS6
> is just more strict about it being properly identified
> as one ..."
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

that doesn't feel right to me at all.  i'd say more testing is in order.
how does nn6.1 behave when you remove the id attributes from the <input>s?

if it works, then there's a bug in nn6.1 in what it does when it encounters
items with the same id.  fwiw, the default behavior is to turn the id'ed
elements by the same id into an array of id'ed elements like same named
forms, same named form elements, same named images, etc.

when i use id attributes on radio buttons it's to give a handle for the
label tag.  in that case i combine name and value attributes to create a
unique id.  otherwise the label won't work properly.

<input
 type="radio"
 name="gender"
 id="gender_m"
 value="m"
> <label for="gender_m"
>Male</label>

<input
 type="radio"
 name="gender"
 id="gender_f"
 value="f"
> <label for="gender_f"
>Female</label>

using non-alphanumeric characters in the value of the id attribute just
feels dirty to me.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Side Question: Is anyone else building web sites with
> Netscape 6.1 in mind?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

for nn6.1 specifically or just check to make sure it doesn't break in nn6.1?
if it's the latter, we do here at work.  if it's the former, then no, the
percentage of the audience using nn6.1 is just *way* too low to do that.

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/










More information about the thelist mailing list