solom190
08-27-2007, 03:17 PM
Okay, I'm getting this error message everytime I try to run this test asp page I'm trying to build. This is the error message:
Error Type:
Microsoft JScript runtime (0x800A1391)
'document' is undefined
redValidate2.asp, line 143
Browser Type:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
Page:
GET /practice/leo2/redValidate2.asp
I think the problem is that the document method is javascript method and the asp page is not recognizing it. I'm not exactly sure how to get around the problem or fix it. The code on this line is:
<script language="javascript" runat=server>
function jsproc(num1,num2)
{
Response.Write(num1*num2)
}
var test = (document.getElementsByTagName && document.createElement);
function validate() {...</script>
I'm trying to ultimately run the validation function that is the last line of the code but it's not even getting that far because. What it is i'm trynig to do with that function is send an error message (that is not an window pop-up alter)to the user telling them about some error, perhaps "invalid password." But instead of a alert I wanted it to appear on the actual page. Much like the error message you get if you login to this site w/ the wrong password. If someone could help me with this or help me find an alternate route (other than using this function, or DOM) to do what I'm really trying to do that would be great. Thank you.
Error Type:
Microsoft JScript runtime (0x800A1391)
'document' is undefined
redValidate2.asp, line 143
Browser Type:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
Page:
GET /practice/leo2/redValidate2.asp
I think the problem is that the document method is javascript method and the asp page is not recognizing it. I'm not exactly sure how to get around the problem or fix it. The code on this line is:
<script language="javascript" runat=server>
function jsproc(num1,num2)
{
Response.Write(num1*num2)
}
var test = (document.getElementsByTagName && document.createElement);
function validate() {...</script>
I'm trying to ultimately run the validation function that is the last line of the code but it's not even getting that far because. What it is i'm trynig to do with that function is send an error message (that is not an window pop-up alter)to the user telling them about some error, perhaps "invalid password." But instead of a alert I wanted it to appear on the actual page. Much like the error message you get if you login to this site w/ the wrong password. If someone could help me with this or help me find an alternate route (other than using this function, or DOM) to do what I'm really trying to do that would be great. Thank you.