...

View Full Version : Double Click Dilemma



jj730105
05-19-2003, 07:30 PM
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?

whackaxe
05-19-2003, 10:03 PM
ill tell my mum to get off your user community :p 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?

scroots
05-19-2003, 10:09 PM
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

l3vi
05-20-2003, 03:26 AM
Originally posted by whackaxe
ill tell my mum to get off your user community :p she always double cliks hyperlinks.

The same w/ my mom:D It gets on my nerves soooo bad when she does!:o

chrisvmarle
05-20-2003, 10:00 AM
Same with my mom :p
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

l3vi
05-20-2003, 10:22 PM
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...

Spudhead
05-28-2003, 05:32 PM
<a href="place" onMouseOver="alert('Click me ONCE.')">

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

chrisvmarle
05-28-2003, 06:19 PM
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

Roy Sinclair
05-29-2003, 02:28 AM
<a href="javascript:alert('Here');" onclick="window.location.href=this.href;this.href='#';">The link</a>

scroots
05-29-2003, 07:12 PM
my dad could be in the tripple click group.

scroots

whackaxe
05-29-2003, 08:10 PM
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 ;)

mr_evans2u
05-29-2003, 09:32 PM
what about:
ondblclick = JavaScript:alert('Do not double click')



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum