Hi, > I found that array looping method online, I guess I will remove that > page from my bookmarks.
Yes, it's an extremely common misconception. > Thanks for setting me right :) No worries! -- T.J. :-) On Aug 1, 5:23 pm, Rog <ro...@aidreams.co.uk> wrote: > Thanks very much, that makes a lot of sense now. > > I found that array looping method online, I guess I will remove that > page from my bookmarks. > > Thanks for setting me right :) > > On 1 Aug, 11:47, "T.J. Crowder" <t...@crowdersoftware.com> wrote: > > > > > Hi, > > > `for..in` is not for looping through the indexes of an array, it's for > > looping through the property names of an object. More in the API docs: > > >http://api.prototypejs.org/language/array/ > > > ...and in the unofficial wiki: > > >http://proto-scripty.wikidot.com/prototype:tip-looping-through-arrays > > > HTH, > > -- > > T.J. Crowder > > Independent Software Consultant > > tj / crowder software / comwww.crowdersoftware.com -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.