R
Rollie72
Hello,
This is a first time post for me.
Have this HTML form being validated by a javascript. I am having a
problem with the line "document.ACLinfo.BUmanager.value=manager;" .
When in Firefox this line executes correctly , the BUmanager field is
updated and the information is passed to the cgi script. When in IE it
appears not to execute properly, the resulting cgi script still
contains the default value and was not overwritten with the value
entered by the user.
Please if anyone can shed some light on this matter.
Thanks
<HTML>
<head> <title> HTML Form for the Network Software Group </title>
<script type="text/javascript">
function Validate()
{
if(document.ACLinfo.choice.value=="2")
{
var manager=prompt("Please enter the managers name of the business
unit requesting the change","")
if(name!=null && name!="")
{
document.ACLinfo.BUmanager.value=manager;
}
}
}
</script>
</head>
<BODY>
<FORM METHOD="POST" NAME="ACLinfo" ACTION="XXXXXXXXXXXXX.cgi"
onSubmit="return Validate();">
<hr style="WIDTH: 550px" align="center">
</P>
<TABLE>
..............
<INPUT TYPE="HIDDEN" NAME="BUmanager" VALUE="Default">
................
This is a first time post for me.
Have this HTML form being validated by a javascript. I am having a
problem with the line "document.ACLinfo.BUmanager.value=manager;" .
When in Firefox this line executes correctly , the BUmanager field is
updated and the information is passed to the cgi script. When in IE it
appears not to execute properly, the resulting cgi script still
contains the default value and was not overwritten with the value
entered by the user.
Please if anyone can shed some light on this matter.
Thanks
<HTML>
<head> <title> HTML Form for the Network Software Group </title>
<script type="text/javascript">
function Validate()
{
if(document.ACLinfo.choice.value=="2")
{
var manager=prompt("Please enter the managers name of the business
unit requesting the change","")
if(name!=null && name!="")
{
document.ACLinfo.BUmanager.value=manager;
}
}
}
</script>
</head>
<BODY>
<FORM METHOD="POST" NAME="ACLinfo" ACTION="XXXXXXXXXXXXX.cgi"
onSubmit="return Validate();">
<hr style="WIDTH: 550px" align="center">
</P>
<TABLE>
..............
<INPUT TYPE="HIDDEN" NAME="BUmanager" VALUE="Default">
................