Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form submit not working Netscape

Status
Not open for further replies.

gdkz

Programmer
Nov 21, 2002
44
US
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
 
Try this:
var myform = document.forms["form" + x];

Adam
while(woman.width>woman.height && wallet.value>0){beer++;vision.blur()};
 
Thanks, var myform = "document.form" + x worked. Just didnt see it the first time. Thanks again, just what I needed.


Thanks in Advance!
Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top