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

Fitzgerald, Theodore C ted-fitzgerald at uiowa.edu
Fri Nov 7 08:25:33 MST 2014


You can add $('#submit').submit() like so:

                 $('.submitter').html('<div align="center"><img src="images/ajax-loader_large.gif"></div>');


Application Developer
ITS-Enterprise Services
2800 UCC
University of Iowa

From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
Sent: Friday, November 07, 2014 9:21 AM
To: FX.php Discussion List
Subject: [FX.php List] Simple JQuery question (I hope)

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 Patin
Longterm Solutions
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>
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/4dafc7cf/attachment-0001.html

More information about the FX.php_List mailing list