Meaningless Drivel is fun!
The moose likes Servlets and the fly likes more than one click on a button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

more than one click on a button

Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456

How we can handle the following suitation
If a user clicks on a button more than once but we need to handle it onece.

@ben - i guess this topic was moved too fast.

"use javascript to disable" is probably not the best of all solutions, as the user might have deactivated javascript of might use a media which has no javascript support.

one more sophisticating technique would be to create a unique id, submit it as a hidden field and ensure that each id is processed only once (or never ;-))

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63062

Please post replies in the original topic. Since this has been moved to the HTML forum, you should post there.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Don't get me started about those stupid light bulbs.
subject: more than one click on a button
jQuery in Action, 3rd edition