I have an ASP page with numerous forms that calls a javascript function. This function then submits the form using myform.submit(). This works fine in EI but does not do anything in Netscape7.01. It does fine until the form submit, then hangs. I tried using document.myform.submit(), but it still refuses to process.
function edit(val,val2,val3)
{
var x = val
var myform = "form" + x
if (val2=="1"
{
strurl = "education_add.asp?dothis=Edit&line=" + val3
myform.action = strurl
}
else
{
var answer=confirm("Do you wish to delete this record?"
if(answer)
strurl = "education_process.asp?dothis=Delete&line=" + val3
myform.action = strurl
}
alert(strurl)
myform.submit();
}
If anyone can see what I am overlooking, It would be a great help.
Thanks in Advance!
Greg
function edit(val,val2,val3)
{
var x = val
var myform = "form" + x
if (val2=="1"
{
strurl = "education_add.asp?dothis=Edit&line=" + val3
myform.action = strurl
}
else
{
var answer=confirm("Do you wish to delete this record?"
if(answer)
strurl = "education_process.asp?dothis=Delete&line=" + val3
myform.action = strurl
}
alert(strurl)
myform.submit();
}
If anyone can see what I am overlooking, It would be a great help.
Thanks in Advance!
Greg