This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling multiple clicks by the user

 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I did it using javascript. It was bit urgent, so for now it seems to be working.

Thanks again.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic