jillallynwilson
Programmer
The following code works in IE6.0, but not in Netscape 7.02.
The submit button does work, because if I clear the email address and try to submit the form with a blank value, the alert is presented. Also, the alert (bebug purpose only) is presented in the browser if the email address is not blank, but the URL is never executed.
Can anyone help me out?
Thank you in advanced.
_____________________________________
<html><head><title>Scott Specialty Gases - eScott 3 Year History</title>
<script language="JavaScript" type="text/JavaScript">
function submitIt()
{
var df = window.document.ThreeYear;
var UNID = df.UNID.value;
var CustNo = df.CUSTNO.value;
var NeweMail = df.EMAIL.value;
if (NeweMail == "")
{
alert("eMail Address is required to complete request.");
}
else
{
alert("Run Report")
document.location.href("/eScott2.nsf/(3YearHistoryRun)?OpenAgent&UNID=" +UNID + "&CustNo=" + CustNo + "&eMail=" + NeweMail);
}
}
</script>
<style type="text/css">
<!--
body, td { font-family : Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal}
.THeading {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: bold;
text-align: left;
background-color: #E2E2E2;}
a:active {color: #3163CE; Text-Decoration : underline;}
a:link {color: #3163CE; text-decoration: underline}
a:visited {color: #3163CE; text-decoration: underline}
-->
</style>
</head>
<body bgcolor="#BDCEEF" leftmargin="3" topmargin="0" marginwidth="0" marginheight="0">
<br>A <b>3 year history report</b> will be emailed to the following address. Please make any corrections and then select Submit.
<form name="ThreeYear">
<input type="hidden" name="UNID" value="XXXXXXXXXXXX">
<input type="hidden" name="CUSTNO" value="XXXXXXXX">
<input type="text" name="EMAIL" size="40" maxlength="40" value="tkariger@scottgas.com"><p>
<a href="#" onClick="submitIt()"><b>Submit</b></font></a>
</p></form></body></html>
The submit button does work, because if I clear the email address and try to submit the form with a blank value, the alert is presented. Also, the alert (bebug purpose only) is presented in the browser if the email address is not blank, but the URL is never executed.
Can anyone help me out?
Thank you in advanced.
_____________________________________
<html><head><title>Scott Specialty Gases - eScott 3 Year History</title>
<script language="JavaScript" type="text/JavaScript">
function submitIt()
{
var df = window.document.ThreeYear;
var UNID = df.UNID.value;
var CustNo = df.CUSTNO.value;
var NeweMail = df.EMAIL.value;
if (NeweMail == "")
{
alert("eMail Address is required to complete request.");
}
else
{
alert("Run Report")
document.location.href("/eScott2.nsf/(3YearHistoryRun)?OpenAgent&UNID=" +UNID + "&CustNo=" + CustNo + "&eMail=" + NeweMail);
}
}
</script>
<style type="text/css">
<!--
body, td { font-family : Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal}
.THeading {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: bold;
text-align: left;
background-color: #E2E2E2;}
a:active {color: #3163CE; Text-Decoration : underline;}
a:link {color: #3163CE; text-decoration: underline}
a:visited {color: #3163CE; text-decoration: underline}
-->
</style>
</head>
<body bgcolor="#BDCEEF" leftmargin="3" topmargin="0" marginwidth="0" marginheight="0">
<br>A <b>3 year history report</b> will be emailed to the following address. Please make any corrections and then select Submit.
<form name="ThreeYear">
<input type="hidden" name="UNID" value="XXXXXXXXXXXX">
<input type="hidden" name="CUSTNO" value="XXXXXXXX">
<input type="text" name="EMAIL" size="40" maxlength="40" value="tkariger@scottgas.com"><p>
<a href="#" onClick="submitIt()"><b>Submit</b></font></a>
</p></form></body></html>