Javascript: click vs dblclick

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 ?

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

Peter De Berdt wrote:

On 22 Aug 2008, at 08:19, MR Damien wrote:

javascript click double click - Google Search

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

Ok, 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.