posted 22 years ago
Hi,
I have a form wich needs to be submitted using a Javascript. The condensed code is as follows:
<html>
<head>
<script language='javascript'>
function doit()
{
document.f.action = "path of the cgi";
document.f.submit();
alert("Your information has been sent to the Admissions dept");
addr = "redirection addr";
window.location=addr;
return true;
}
</script>
<title></title>
</head>
<body bgcolor="#FFFFDD" link="#0000FF" vlink="#0000FF">
<hr><form METHOD="post" name="f">
<INPUT TYPE="hidden" NAME="mailform_addresses" VALUE="abc@abc.edu">
<INPUT TYPE="text" NAME="addr" value="">
<INPUT TYPE=button NAME="button" VALUE="Submit your Registration"
onClick="return doit();"> <input type="reset" name="reset" value="Reset Form"><BR><BR>
</CENTER></form>
<br><br>
</body>
</html>
The CGI mails the form field contents to the address in the hodden field.
This form works fine in Netscape. But, it fails to work as desired in IE. It calls the Javascript and even displays the laerts. But, it does not call the CGI and does not open the redirection page properly.
This is kind of urgent so it would be really nice if someone could get back to me with a possible solution.
Thanks,
Varsha.