I donno your structure so I'm guess here. After you grab 'myLink' you try to get a sibling. Is it possible that your looking for the sibling of 'el' and not 'myLink'? As a result you pass null to Fx.Slide, causing an error.
On Sat, Feb 21, 2009 at 11:57 AM, f12 <[email protected]> wrote: > > I got this code: > > > $$('li.menuSlide').each(function(el, i){ > > var myElid = el.get('id'); > var myLink = el.getElement('a'); > var block = myLink.getNext(); > var menuSliding = new Fx.Slide(block); > > menuSliding.hide(); > > el.addEvent('click', function(el){ > new Event(el).stop(); > menuSliding.toggle(); > }); > > }); > //// > alert('here'); > > > > The problem is that everyhting begining on that alert('here'); line is > not executed... > > I'm not understanding why... Could anyone please help me out on this!? > > > Thanks in advance.
