Ajax form submit usability. when i submit the form i wanna diable the form to be submited till the previous submission happens. can i do this by just disabling the input or text area or should i disable the submit button too ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can disable form-submission by letting its onsubmit-handler return false:
Of course you would have a javascript-function which decides whether to submit or not:
The decision-function in your case could look like this:
And after the ajax-response came in, you enable it again: