Hi All, I have some issues with click and dblclick event. I am listening both of them on some div but when I issue a dblclick, I get two single click plus another dblclick event. Do you know how to handle that and get only a single dblclick ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 22 Aug 2008, at 08:19, MR Damien wrote:> I have some issues with click and dblclick event. I am listening > both of > them on some div but when I issue a dblclick, I get two single click > plus another dblclick event. > > Do you know how to handle that and get only a single dblclick ?http://www.google.com/search?client=safari&rls=en-us&q=javascript+click+double+click&ie=UTF-8&oe=UTF-8 Basically browsers don''t wait for a second click to fire off one event. That''s why every book and post I''ve read advises against the use of click and double click on the same element, and rightfully so imho. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter De Berdt wrote:> On 22 Aug 2008, at 08:19, MR Damien wrote: > > > http://www.google.com/search?client=safari&rls=en-us&q=javascript+click+double+click&ie=UTF-8&oe=UTF-8 > > Basically browsers don''t wait for a second click to fire off one > event. That''s why every book and post I''ve read advises against the > use of click and double click on the same element, and rightfully so > imho. > > > Best regards > > Peter De BerdtOk, but as Apple is using it with Mobile.Me, I thought there was an easy way to do it. I will use a button then. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---