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
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
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
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)
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)
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
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
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
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.
~|
9 matches
Mail list logo