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 Object(); > > $a['testme1'] = 'tested1'; > $a['testme2'] = 'tested2'; > $a['testme3'] = 'tested3'; > > $a.each(function($s){ > > alert($s); > > }); > Using Prototype convention: a = $H(); a.set('testme1', 'tested1'); a.set('testme2', 'tested2'); a.set('testme3', 'tested3'); a.each(function(pair){ alert(pair.key + ': ' + pair.value); }); > > In IE, this works fine, but does not work in Chrome: > > > $aEle = $('TicketOptions').getElementsByClassName('LoadChecks'); > > $aEle.each(function($s){ > > if($s != $sEle) $s.checked = false; > > }); > Using Prototype convention: aEle = $('TicketOptions').select('.LoadChecks'); aEle.each(function(s) { if (s != sEle) s.checked = false; }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---