Please dis-regard... I had not had enough caffine this morning ..
I had the invoke in a loop so it was setting up X observers *slaps Head* Sorry for wasting the server space with my stupid message!! Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: "Alex McAuley" <[email protected]> To: <[email protected]> Sent: Friday, October 23, 2009 11:26 AM Subject: [Proto-Scripty] Re: Bizzare goings on again... > > 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" <[email protected]> > To: "Prototype & script.aculo.us" > <[email protected]> > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
