To add to it ... If i add a third element into div#contents it fires three times...
Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: "Alex Mcauley" <webmas...@thecarmarketplace.com> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com> Sent: Friday, October 23, 2009 11:24 AM Subject: [Proto-Scripty] Bizzare goings on again... > > I have some really weird behaviour - perhaps someone could enlighten > me why its happening as i cant figure it out... > > <div id="contents"> > <div class="windowopener">Open a window</div> > <div class="windowopener">Open a window</div> > </div> > > $$('#contents .windowopener').invoke('observe','dblclick',function > (event){ > > alert('I was clicked'); > > }); > > The above script when double clicked gets fired twice for some > bizzarre reason and i cant see why it does ... > > Can anyone help me understand why it gets fired > > Thanks in advance > > Alex > > > --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---