[Proto-Scripty] Re: Chrome, Object and each()

2008-11-15 Thread laurin1
Subject: [Proto-Scripty] Re: Chrome, Object and each() Like I said, this code works just fine in IE, but in Chrome, it does not work.        $aEle = $('TicketOptions').getElementsByClassName('LoadChecks');        $aEle.each(function($s){                if($s != $sEle) $s.checked = false

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Alex Mcauley
each does an array itterator no ? - Original Message - From: laurin1 [EMAIL PROTECTED] To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Friday, November 14, 2008 8:29 PM Subject: [Proto-Scripty] Chrome, Object and each() Apparently, this does not work? I

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1
It works fine on arrays, if that is what you are asking. On Nov 14, 2:39 pm, Alex Mcauley [EMAIL PROTECTED] wrote: each does an array itterator no ? - Original Message - From: laurin1 [EMAIL PROTECTED] To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent:

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1
I'm sorry. My brain is fried, it works on arrays with simple values, but not arrays with Objects IN them. Mispoke. For instance, in IE and in Chrome, this works fine: $a = new Object(); $a['testme1'] = 'tested1'; $a['testme2'] = 'tested2'; $a['testme3'] =

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread kangax
On Nov 14, 4:17 pm, laurin1 [EMAIL PROTECTED] wrote: I'm sorry. My brain is fried, it works on arrays with simple values, but not arrays with Objects IN them. Mispoke. For instance, in IE and in Chrome, this works fine: $a = new Object(); $a['testme1'] = 'tested1';

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Ken Snyder
See my comments below. - Ken Snyder On Fri, Nov 14, 2008 at 2:17 PM, laurin1 [EMAIL PROTECTED]wrote: I'm sorry. My brain is fried, it works on arrays with simple values, but not arrays with Objects IN them. Mispoke. For instance, in IE and in Chrome, this works fine: $a = new

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1
Like I said, this code works just fine in IE, but in Chrome, it does not work. $aEle = $('TicketOptions').getElementsByClassName('LoadChecks'); $aEle.each(function($s){ if($s != $sEle) $s.checked = false; }); No error in the browser, but the JS debugger