File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Reg : Disable the button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reg : Disable the button" Watch "Reg : Disable the button" New topic

Reg : Disable the button

chennai Kumar
Ranch Hand

Joined: Jun 04, 2005
Posts: 72
Hai All,

When user clicks a button / href application redirect to external application.
Client gave the following requirements, as user does not saturate with same request.
So ask us to disabled the button / href for 5 seconds when user click particular button / href.

Can you please guide me how to solve

Thanks and Regards,
Ram kumar

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63052

Assign a click handler to the button and disable it.

If it's going to redirect, what's the point of the 5 second limit?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63052

Also, please use real words when posting to the forums. Abbreviations such as "Reg" in place of whatever it is supposed to mean only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

JavaRanch sheriff
I agree. Here's the link:
subject: Reg : Disable the button
It's not a secret anymore!