Questions tagged [double-submit-prevention]
49 questions
3
votes
5 answers
double submission when refresh php
I'm trying to correct the issue of double submit in my script. When I press submit it only updates mysql once(which is what I want). However, when I hit refresh it updates mysql again. It seems to ignore the if statement once the refresh button is…

Aaron
- 4,380
- 19
- 85
- 141
3
votes
2 answers
Disabled submit button remains Disabled if a user interrupts redirecting to a new page
I'd like to disable a submit button after it's pressed using javascript.
myForm.onsubmit = function() {
...
mySubmitButton.disabled = true;
...
}
But when a user stops opening a new page while the current is still alive, the button remains…

almar
- 27
- 2
3
votes
5 answers
Disabled jQuery UI Button Remains Disabled on Returning to Page
I have a JQuery UI submit button on a form when it's clicked to both prevent double-clicking and to also make it visibly clear that it was in fact clicked properly.
So I use jQuery to do this:
$('input:submit').click(function() {
…

at.
- 50,922
- 104
- 292
- 461
3
votes
1 answer
How to implement server-side double-submit-prevention in GWT?
I am building an GWT application with lot's of forms. I am using gwt-platform with its dispatch module.
The next step in my mind is to prevent double-submits ON SERVER SIDE. The problem is that I don't know how to do it exactly...
I thought of…

Benjamin M
- 23,599
- 32
- 121
- 201
2
votes
1 answer
rails: ajax avoid multiple form submit
I have an submit button and need to ensure that is only pressed/submit one time until the AJAX request is finished. The Javascript solutions are not safe in case of noScript.
Is there a propper way to do that in Rails?

Karl Adler
- 15,780
- 10
- 70
- 88
2
votes
1 answer
How to prevent double submit with jQuery in ASP.NET app with UpdatePanels
I have an Intranet ASP.NET application which is sometimes slow to respond. My requirement is to prevent double submit, and ideally provide feedback to the user that the form has already been submitted.
Examples I've found show how to disable a…

Joe
- 122,218
- 32
- 205
- 338
2
votes
1 answer
WTForms double POST submit prevention on refresh flask-wtf
I use WTForms and Flask with Flask-WTF extension
My form looks like:
class CommentForm(Form):
body = TextAreaField('Body', [validators.Length(min=4, max=300)])
entity_id = HiddenField('Entity ID', [validators.required()])
Jinja2 Template:
…

Zelid
- 6,905
- 11
- 52
- 76
1
vote
3 answers
Double submit after page reload
I have a following scenario:
First webpage has a form which does submit to the server.
Server responds with second page.
The second page has a hidden form which is being submitted using javascript on form load, it redirects user to an external…

mateusz.fiolka
- 3,032
- 2
- 23
- 24
1
vote
2 answers
jQuery Disable Enter Key after Enter Key has been hit when Enter key has already been disabled
I have disabled my enter key so that I can do an ajax submission, but I want to make sure that the form isn't submitted twice if the user hits enter twice before the response from the server comes back.
Here I have disabled the enter key and…

tjb1982
- 2,257
- 2
- 26
- 39
1
vote
3 answers
Disabling forms with javascript on submit to prevent double submit
I'd like to disable a form after it is submitted in order to prevent double submissions. Pretty standard use case I would think, but all of the examples I can find out there are flawed.
Everything I can find is based on disabling the submit button,…

William Jones
- 18,089
- 17
- 63
- 98
1
vote
3 answers
jquery newbie: combine validate with hidding submit button
I'm new a jQuery. I have gotten validate to work with my form (MVC 1.0 / C#) with this: