Hi,
I get the same results with IE6 at my end: 0. Opera 9 (Windows) shows
2, as does Safari 3.1.1 (Windows).
Very strange! Another intriguing difference is that if I add this
pair of lines:
] s2 = document.getElementsByTagName("select");
] alert('Size from gebtn: ' + s2.length);
FF shows wha
I think I found another pitfall of IE...
IE6 - 0,
IE7 - 0,
Safari - 2,
Firefox - 2.
Can anyone try Opera?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send
Hm! I run prototype.js 1.6.0.2 too, but am getting "0" on
alert(selects1.size());. What's your browser? Mine is IE7.0.6001.18000
x64.
I know about global variables and for...in. ) Used for...in just to
show the difference.
--~--~-~--~~~---~--~~
You received this me
Hi,
When I run that with Prototype 1.6.0.2, the first alert gives me the
expected result ("2"). If you're seeing different behavior, perhaps
it's related to a version of Prototype, or...?
Two other things I noticed:
1. You're creating global variables ("selects1", "selects2", and
"id"). You p