I am getting this error when using IE, however it works fine with FF
Object doesn't support this property or method
Any ideas?
Thanks in advance...
The problem arises when trying to get the user selection ...The line of code it complains about is the one mark with ==
function validate () {
NameElm = document.getEle mentById('Name' );
==Name = NameElm.options[NameElm.selecte dIndex].value;==
....
}
<HTML>
...
<SELECT ID="Name" SIZE="10" onChange="valid ate()">
<OPTION SELECTED="TRUE" VALUE="-1">-- Please Choose a NAME--</OPTION>
<?
set count 1
foreach name $NameList {
puts "<OPTION VALUE=\"$name\" >$count - $name</OPTION>"
incr count
}
?>
</SELECT>
...
</HTML>
Object doesn't support this property or method
Any ideas?
Thanks in advance...
The problem arises when trying to get the user selection ...The line of code it complains about is the one mark with ==
function validate () {
NameElm = document.getEle mentById('Name' );
==Name = NameElm.options[NameElm.selecte dIndex].value;==
....
}
<HTML>
...
<SELECT ID="Name" SIZE="10" onChange="valid ate()">
<OPTION SELECTED="TRUE" VALUE="-1">-- Please Choose a NAME--</OPTION>
<?
set count 1
foreach name $NameList {
puts "<OPTION VALUE=\"$name\" >$count - $name</OPTION>"
incr count
}
?>
</SELECT>
...
</HTML>
Comment