Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile In firefox click event is firing before doubleclick event for a div

    Dear users
    i want to execute a function when double click on some div,but when i doubleclick on that its executing two functins
    1) which i wrote for single click
    2)which i wrote for double click

    the above senario is in Firefox its working fine i,e when i double click on div only doublle click realted function is executing in IE.

    if any one know solution for above please let me know

    Regards
    Ravishanker Maduri

  • #2
    Regular Coder mic2100's Avatar
    Join Date
    Feb 2006
    Location
    Scunthorpe
    Posts
    562
    Thanks
    15
    Thanked 28 Times in 27 Posts
    i suppose wen i really think about it a single click must always occur before a double click can be achieved. someone correct me if i am wrong...

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,460
    Thanks
    11
    Thanked 600 Times in 580 Posts
    Quote Originally Posted by mic2100 View Post
    i suppose wen i really think about it a single click must always occur before a double click can be achieved. someone correct me if i am wrong...
    some browsers delay the firing of onclick, to see if it is actually a double click.
    that's why many large sites use onmousedown instead: the site feels more responsive without the 100-250ms delay.
    my site (updated 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •