[FX.php List] Simple JQuery question (I hope)
bob at patin.com
Fri Nov 7 08:21:01 MST 2014
I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don’t click the button twice.
I’ve written this:
$('.submitter').html('<div align="center"><img src="images/ajax-loader_large.gif"></div>');
which works, but the form doesn’t submit; this seems to intercept the POST.
I tried adding this
$.post(‘card.php’) <—— card.php is the name of this form page
but it doesn’t make any difference.
Here is my question: how can I put the image into the DIV (which I’m doing above) and at the same time let the POST occur?
bob at longtermsolutions.com <mailto:bob at longtermsolutions.com>
FileMaker 9, 10, 11, 12 & 13 Certified Developer
iChat: bobpatin at me.com <mailto:bobpatin at me.com>
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FX.php_List