Click to See Complete Forum and Search --> : Help! Keep getting form value has no properties


stc60
11-15-2004, 12:21 AM
This is a Netscape only error. I keep getting form value has no properties for line 4
<script language="Javascript">

parent.score=parseInt((parent.score+<?print $cr;?>)*10);

parent.score=(parent.score)/10;

parent.topFrame.form1.score.value=parent.score;

parent.ida[1]=<?print $id1;?>;

parent.ida[2]=<?print $id2;?>;

parent.url[1]="<?print $url1;?>";

parent.mainFrame.location.href="<?print $url1;?>";

</script>
==========================

Here is the form1:
=================


<form name="form1" method="post" action="">
<table border="0" cellspacing="0" cellpadding="5" align="left" class="tab_brd">
<tr>
<td valign="middle"><font face="Arial, Helvetica, sans-serif" size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">
&nbsp;TIMER:</font></b></font></td>
<td>
<input type="text" name="timer" size="4" class="timer" >
</td>
</tr>
<tr>
<td valign="middle"><font face="Arial, Helvetica, sans-serif" size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">
&nbsp;CREDITS:</font></b></font></td>
<td>
<input type="text" name="score" size="6" class="timer" >
</td>
</tr>
</table>
</form>
===========================
Works fine in IE, bu not Netscape!! Help!

Jona
11-15-2004, 01:19 AM
Shouldn't this:


parent.topFrame.form1.score.value=parent.score;


...be this?


parent.topFrame.document.form1.score.value=parent.score;

stc60
11-15-2004, 08:39 AM
I tried putting document.something all over the place.
It never dawned on me to put it THERE!!!!(stupid)
It works like a charm!
Thanks a lot!

Jona
11-15-2004, 11:02 AM
Happy to help.