Re: FireFox getElementById issue?

2009-02-19 Thread rex
MemberName should have ID and NAME If it works in IE, that means that MemberName only has NAME since IE resolves the getElementById function to both the ID and NAME of the object in this code example, both selects will work in IE but only the second one will work in FF select name=MemberName

Re: FireFox getElementById issue

2009-02-18 Thread Joel Polsky
I'm not a javascript expert..but try script = Javascript instead of script = Javascript1.2 On Mon, Feb 16, 2009 at 11:44 AM, Austin Band cfusio...@yahoo.com wrote: Hello, I need a little help. I have javascript that works with IE but not FireFox. The code: script = Javascript1.2

Re: FireFox getElementById issue

2009-02-18 Thread Charlie Griefer
script type=text/javascript and... are you sure there is only one element with that specific ID? really really sure? On Wed, Feb 18, 2009 at 10:15 PM, Joel Polsky polskystud...@gmail.comwrote: I'm not a javascript expert..but try script = Javascript instead of script = Javascript1.2 On

FireFox getElementById issue?

2009-02-16 Thread Austin Band
Hello, I need a little help. I have javascript that works with IE but not FireFox. The code: script = Javascript1.2 function addItemsToParent(){ var MemberList= ; var list = document.getElementById(MemberName).value; for(var i=0; ilist.options.length; ++i)

FireFox getElementById issue?

2009-02-16 Thread Austin Band
Hello, I need a little help. I have javascript that works with IE but not FireFox. The code: script = Javascript1.2 function addItemsToParent(){ var MemberList= ; var list = document.getElementById(MemberName).value; for(var i=0; ilist.options.length; ++i)

Re: FireFox getElementById issue?

2009-02-16 Thread Azadi Saryev
hmm... document.getElementById(MemberName).value will return a VALUE of SELECTED option. if no option was selected this should be null/undefined... i am not sure why it is working in IE - it really should not... maybe it works because IE always assigns a value to a select element, even if no

Re: FireFox getElementById issue?

2009-02-16 Thread Claude Schneegans
I have javascript that works with IE but not FireFox. Note that there is a bug in IE which returns with getElementById(string) both elements that have the ID set to the string searched, but also those having the NAME attribute set. So may be it is normal your code des not work with FF and it

Re: FireFox getElementById issue?

2009-02-16 Thread Seb Duggan
First up, script = Javascript1.2 is meaningless... Should be script language=Javascript1.2 or, better: script type=text/ javascript. Your main problem, however, is that var list = document.getElementById(MemberName).value; ..is also wrong. You're trying to access the select item, not

Re: FireFox getElementById issue?

2009-02-16 Thread Peter Boughton
First up, script = Javascript1.2 is meaningless... Should be script language=Javascript1.2 or, better: script type=text/ javascript. The language attribute is just as meaningless. You *ONLY* need the type attribute. ~|