wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Disabling multiple clicks by the user Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling multiple clicks by the user" Watch "Disabling multiple clicks by the user" New topic
Author

Disabling multiple clicks by the user

vjy chin
Ranch Hand

Joined: Feb 17, 2005
Posts: 279
I have a jsp page where I have a save button to save the form. I want to prevent the user from multiple submits.

SO I want to disable the submit button. Also the page submits to itself (does some operations and comes back to the same page to display the entered data).

So I have to re-enable it when the page reloads. How can I do this?

Any help appreciated.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Personally, I'd not do things that way, but you can use JavaScript to disable the button when clicked, the page reload will, well, reload the page and restore everything to "normal".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
vjy chin
Ranch Hand

Joined: Feb 17, 2005
Posts: 279
Thanks for the reply. I did it using javascript. It was bit urgent, so for now it seems to be working.

Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disabling multiple clicks by the user