Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
When back button is clicked then form submit button should be disabled
Old 06-04-2007, 08:35 AM When back button is clicked then form submit button should be disabled
Junior Talker

Posts: 1
Name: Narendra babu
Trades: 0
Hi,

I am having a form with form fields, submit and cancel button in Page1. Once the user enter form field values and clicks the submit button. Then it goes to another jsp page(Page2) which displays the entered form details.

If the user clicks BACK button in the browser from Page2 the submit button in the Page1 should be displayed. Can anyone please help me to disable the submit button?

In order to avoid the submission of the form twice, the submit button should be disabled.

I am using Java, struts in my project.

Thanks in advance,
Naren
naren_cts is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-04-2007, 09:49 PM Re: When back button is clicked then form submit button should be disabled
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
I have written a how-to guide on handling repeat form submission. It uses a very simple method and sessions. The write up gives an algorithm and PHP implementation, but you can implement the algorithm in any language. http://www.teratask.com/index.php?pa...peat-submision

Hope that helps.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to When back button is clicked then form submit button should be disabled
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26441 seconds with 12 queries