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 12 of 12
  1. #1
    New to the CF scene
    Join Date
    May 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Double Click Dilemma

    My user community is using my web application in a way that I had never expected. They are double clicking hyperlinks. If the hyperlink were linking to a static page, that would be fine. However, these hyperlinks take the users to dynamically generated pages that rely on information that is stored in the user's session.

    Here is the sequence of events:
    Click #1 -- a request is sent to the server. The server takes the request, checks some session variables, updates some session variables, and then tries to process the request.
    Click #2 -- is (I'm assuming) overriding click #1. #2 attempts to use the same variables (which are now updated), and fails because the values are not set appropriately to handle the request.

    I'm sure that there are things that we can do to (set session tokens, etc.) to ensure that a second click does not trigger the error-generating sequence of events. DOES ANYONE know of any standard web-design patterns that can be followed to handle the double-click issue?
    Last edited by jj730105; 05-19-2003 at 06:36 PM.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ill tell my mum to get off your user community she always double cliks hyperlinks. but i don't understand where the problem is really. could you give examples of variables, what they fo and what they change to?
    photoshop too expensive? use the GIMP! www.gimp.org

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you could use some nifty javascript to prevent double clicking, so click one would do what the link is ment to do and click to would do nothing.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #4
    Regular Coder
    Join Date
    Jan 2003
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by whackaxe
    ill tell my mum to get off your user community she always double cliks hyperlinks.
    The same w/ my mom It gets on my nerves soooo bad when she does!

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Same with my mom
    Guess it's "the Moms"

    About the question, it's easier with buttons (I've been trying to solve it on links, but not succes yet)

    <input type="button" value="Click" onClick="someAction;this.disabled=true">

    Mzzl, Chris
    My Website
    010100010011110101110100011011110111000001101000

  • #6
    Regular Coder
    Join Date
    Jan 2003
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by chrisvmarle
    About the question, it's easier with buttons (I've been trying to solve it on links, but not succes yet)

    <input type="button" value="Click" onClick="someAction;this.disabled=true">
    Couldnt u still do the same with a link?:
    <a href="whatever link" onClick="someAction;this.style.visibility='hidden'">

    Sure it would hide it afterwords, but they wouldnt be able to click it!

    You could also probably take some kind of script that makes it disapear for a few seconds, then it will slowly fade back in...
    Last edited by l3vi; 05-20-2003 at 09:25 PM.

  • #7
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    <a href="place" onMouseOver="alert('Click me ONCE.')">


    It's the only way they'll learn....

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That script is useless, since most of the people use their mouse to click the "OK" of an alert. To click the "OK" they move their cursor OFF the link and when they get over the link again the alert is shown again. So the text of the alert should be
    "Don't click me! Not even ONCE!"

    Mzzl, Chris
    My Website
    010100010011110101110100011011110111000001101000

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <a href="javascript:alert('Here');" onclick="window.location.href=this.href;this.href='#';">The link</a>
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my dad could be in the tripple click group.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my physics teachers could be in the x>10 club. she double clicks but to slow so its starts renaming the file so then she reclicks on the text box and it just moves the text cursor. then she clicks on the icon and thatjust unselcts the text. then back on the desktop, reapeats a few times, and then manages to dble click the icon properly. thats 10 clicks for two screw ups
    photoshop too expensive? use the GIMP! www.gimp.org

  • #12
    New Coder
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what about:
    ondblclick = JavaScript:alert('Do not double click')


  •  

    Posting Permissions

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