Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 64833
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic