[Rails-spinoffs] Re: Selecting elements with reserved ids...

2008-04-29 Thread T.J. Crowder
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

[Rails-spinoffs] Re: Selecting elements with reserved ids...

2008-04-28 Thread Domini
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

[Rails-spinoffs] Re: Selecting elements with reserved ids...

2008-04-28 Thread Domini
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

[Rails-spinoffs] Re: Selecting elements with reserved ids...

2008-04-28 Thread T.J. Crowder
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