[FX.php List] Simple JQuery question (I hope)

Bob Patin 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:

$('#submit').click(function(){
	 $('.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?

Thanks,

Bob Patin
Longterm Solutions
bob at longtermsolutions.com <mailto:bob at longtermsolutions.com>
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com <http://www.longtermsolutions.com/>
-
iChat: bobpatin at me.com <mailto:bobpatin at me.com>
Twitter: bobpatin
—
FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/6af4a8be/attachment.html


More information about the FX.php_List mailing list