Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Radio Button Value Property Does Not Exist in Netscape 6.1?
- From: javascript@xxxxxxxxxx (javascript@xxxxxxxxxx)
- Subject: [Javascript] Radio Button Value Property Does Not Exist in Netscape 6.1?
- Date: Fri, 26 Oct 2001 13:27:05 -0400
I have the following code:
<form enctype="text/plain" id="myForm" method="get"
name="myForm" onSubmit="return true;">
<input checked id="txtStep1" name="txtStep1"
tabindex="1"
title="Tabular Profile" type="radio"
value="Tabular">Tabular</input>
<input id="txtStep1" name="txtStep1"
title="Narrative Profile" type="radio"
value="Narrative">Narrative</input>
</form>
In Netscape 4.X and IE 5.X the code:
alert( document.MyForm.txtStep1[01].value );
returns "Narrative"
In Netscape 6.1 the same code gives an error message in the Javascript
console:
"Error: document.myForm.txtStep1[1] has no properties."
Did something change?
In Netscape 6.1 if I use:
alert( document.MyForm.txtStep1.value );
I get the correct answer, "Narrative". I cannot use this code in IE 5.X
and NN 4.X, however. It gives a result of "undefined". Must we have
different code for the two sets of browsers for accessing such basic
properties of form elements? Is there any documentation out there that
talks about this? According to
http://developer.netscape.com/docs/manuals/js/client/jsref/radio.htm the
last example shows my code should work under JS 1.3/NN 6.1. Any ideas?
Gregory J Toland
Sr. Systems Architect
CHM, Inc.
(301) 457-8058
tolan002@xxxxxxxxxx
- Follow-Ups:
- [Javascript] Radio Button Value Property Does Not Exist in Netscape 6.1?
- From: Rodney Myers
- [Javascript] Radio Button Value Property Does Not Exist in Netscape 6.1?
- From: Hassan Schroeder
- [Javascript] Radio Button Value Property Does Not Exist in Netscape 6.1?
- From: Hassan Schroeder
- [Javascript] Radio Button Value Property Does Not Exist in Netscape 6.1?
- Prev by Date: [Javascript] How to handle when the enter key pressed
- Next by Date: [Javascript] (no subject)
- Previous by thread: [Javascript] How to handle when the enter key pressed
- Next by thread: [Javascript] Radio Button Value Property Does Not Exist in Netscape 6.1?
- Index(es):