show loading icon on form submit?
Hi, I wrote the following code to show a loading icon when someone submits my form. unfortunately, it doesn't work and there are no errors?!
here is my code:
Cancel the default submit.
Update the display.
Set a short timeout to submit the form.
You are submitting the form the standard way, the only thing you can do is add a timeout , then submit the form.
If you want it to wait until the submittal is completed, you may want to takeover the submit function and use an ajax call while preventing normal form submittal..
|All times are GMT +1. The time now is 03:58 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.