|
Hello, first timer so please go easy on me.
I have a HTML form that I validate with Javascript. In the javascript I modify a hidden form field. The form is sent to a cgi script. When viewed in Firefox the hidden form field is successfully modified when in IE the default always appears.
Here is the 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;
}
}
}
Here is the line from the HTML code that creates the BUmanager field:
<INPUT TYPE="HIDDEN" NAME="BUmanager" VALUE="default">
The problem is with the line "document.ACLinfo.BUmanager.value=manager;" which appears to only execute when ran within Firefox.
Any help would be appreciated.
|