Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript worrks in Firefox but not IE
Old 02-21-2007, 04:51 PM Javascript worrks in Firefox but not IE
Junior Talker

Posts: 2
Name: Roland
Trades: 0
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.
Rollie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-21-2007, 04:54 PM Re: Javascript worrks in Firefox but not IE
Junior Talker

Posts: 2
Name: Roland
Trades: 0
Sorry didn't edit out everthing, left one too many brackets:

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;
}
}
Rollie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Javascript worrks in Firefox but not IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09980 seconds with 12 queries