Click to See Complete Forum and Search --> : Something broke... Can't see the problem


kelemvor
03-12-2003, 05:19 PM
Well, I keep getting an error that says:

document.FrontPage_Form1.Quantity is null or not an object.

Here's the link where it is reference:
var val=document.FrontPage_Form1.Quantity.value;

Here's the Form Line:
<form name="FrontPage_Form1" METHOD="POST" action="--WEBBOT-SELF--" onsubmit="return Validate(this)" language="JavaScript">

and here's the box line:
<input name="Quantity" size="5" value="0" maxlength="5" onBlur="Check100()">

it was working just fine and then after modifying a different script it stopped. No idea why.

Jona
03-12-2003, 05:22 PM
Try testing it with alert(document.FrontPage_Form1.Quantity.value);

kelemvor
03-12-2003, 05:25 PM
Same problem. It won't let me do anything with that string beacuse it thinkgs that it's not defined for some reason when it really is. Not sure why starting with document.... doesn't work.

Jona
03-12-2003, 10:40 PM
Can you post the whole page's code please? Do you have two forms on the page?

kelemvor
03-12-2003, 10:42 PM
I figured out a work around. See my post called Accessing a form with no name.

FrontPage is screwing with the HTML in the form but I got it working using the forms[0] method instead of the form name.

Jona
03-12-2003, 10:46 PM
Okay