aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Multiple mouse clicks for hyperlinks in IE6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Multiple mouse clicks for hyperlinks in IE6.0" Watch "Multiple mouse clicks for hyperlinks in IE6.0" New topic
Author

Multiple mouse clicks for hyperlinks in IE6.0

Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1066
We have an issue with multiple mouse clicks in our application.
Sometimes(not very often), our users seem to double click buttons and hyper links.

We were able to reproduce multiple mouse click problem for buttons in the jsp pages but not for hyperlinks. Does IE 6.0 on windows 2000 handle multiple mouse clicks for hyperlinks?.(On the click of a hyperlink, we have some javascript validation which in turn submits the from)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
you could try: ondblclick="return false"

Eric
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1066
Thanks Eric,
For submit buttons we have code on the server side which does not process new requests unless the current request for the user has been processed successfully. (Weblogic 8.1, code inside the pageflows).

you could try: ondblclick="return false"


Does the above handle hyperlinks as well? Does the problem of multiple mouse clicks exist for hyperlinks in a web application?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I never have trouble with multiple clicks on things, I normally handle this on the server side making sure that something was not submitted after x milliseconds.

Most people that use the web know to click on stuff once. I normally say this is a training issue if it is an application you use in-house (your comapny). If it availalble to general public, they you may have to try to implement something if you see this problem.

Eric
Eugene Lucash
Ranch Hand

Joined: Feb 19, 2005
Posts: 77
As i can understand for now is worring about dublicated submits
with some data becoming stale on server when data submits twice.

you can use script like this on hyperlinks



<a href="..." on click="return goOnce(this)">..sds.</a>


or you can do automatic binding on onload event



And then you can use normal hyperlins without explicit on click=""


Maybe this is not what you a looking for but...
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1066
Eric,
Yes, it is an inhouse application and we have already escalated it as a training issue.

thanks Eugene,
I'll try your idea and see how it goes.......
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I normally have to deal with older, non-technical people that have been using a client side application for awhile now. They complain about speed.

I usually say to people, it is a web application it takes time to process unlike the client version we used to have. It has to travel accross more wires and takes time!

The client side version is like going to the bathroom and back to grab the information. The web version is like going to the moon and back.

People normally can understand that. LOL

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple mouse clicks for hyperlinks in IE6.0