Frage

I have a form built in Joomla 2.5 and ChronoForms, the form validation been done using MooTools. However in Chrome browser when I click multiple times the submit button, that many number of records get saved. This is not the issue in Mozilla or IE.

Is it a Chrome specific issue??

How can i disable the submit button on success of the validation??

Any feedback or solution is appreciated.

Regards, happy coding

War es hilfreich?

Lösung

I figured this by adding a JavaScript code, which disabled the submit button after it was clicked and there were no validation error.

I had to modify some of the files from chronoform library to do this because when i added a normal JavaScript code, it used to disable the button after the submit button click, it did not check if the validation was fired or not, So, if the validation was fired i was not able to correct the validation error because it disabled my submit button.

Andere Tipps

Maybe check this "Prevent Double Submit" thread on the ChronoEngine forums:

http://chronoengine.com/forums/viewtopic.php?f=2&t=22439

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top