woops. sorry. i missed that! 10x a lot! ----------- אריה גלזר 052-5348-561 5561
On Tue, Dec 1, 2009 at 10:37, Rajeev J Sebastian <[email protected] > wrote: > On Tue, Dec 1, 2009 at 1:56 PM, אריה גלזר <[email protected]> wrote: > > this will return a child for this scenario as well: > > <div id='one'> > > <div> > > <div class='wanted'></div> > > </div> > > </div> > > $('one').getElement('wanted') > > so its not right. > > i guess this will require some sort of hack. i was thining of something > like > > this (brobably will need to be tested and fixed): > > Element.extend({ > > findImediateChildren : function(match){ > > var temp_class = > 'a-very-unlikely-maybe-random-class-name',result; > > this.addClass(temp_class); > > result = this.getParent().getElements('.'+temp_class+'>'+match); > > this.removeClass(temp_class); > > return result; > > } > > }) > > > > WHY ?!? > > this.getChildren(selector) works, is in mootools .... use it! > > Regards > Rajeev J Sebastian >
