[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread Chris Sansom
Oooh - don't say there's a post I can answer... At 02:12 -0700 23/3/09, jazzylicious wrote: I might get some replys with: So you do use prototype, but don't use it for everything??? I just couldn't find a way to do the same thing in prototype. ... var allDivs = new Array

[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread jazzylicious
Great, thanks for the super duper quick replies --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread Maarten
Hi Jochem, You definitely want to look into the following functions: http://www.prototypejs.org/api/enumerable/invoke enables you to hide multiple elements at once, e.g.: $$(.referentie).invoke(hide); // works if you'd add class=referentie to the div elements you want to hide And instead of: