Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple mouse clicks for hyperlinks in IE6.0

 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could try: ondblclick="return false"

Eric
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic