[FX.php List] Simple JQuery question (I hope)
Bob Patin
bob at patin.com
Fri Nov 7 08:29:50 MST 2014
Thanks, that did the trick when I put the form’s ID in there, as opposed to the button’s ID.
:)
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com
-
iChat: bobpatin at me.com
Twitter: bobpatin
—
FileMaker Consulting
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting
> On Nov 7, 2014, at 9:25 AM, Fitzgerald, Theodore C <ted-fitzgerald at uiowa.edu> wrote:
>
> Bob,
>
> You can add $('#submit').submit() like so:
>
> $('#submit').click(function(){
> $('.submitter').html('<div align="center"><img src="images/ajax-loader_large.gif"></div>');
> $('#submit').submit();
> });
>
> Ted
>
> 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:
>
> $('#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
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org <mailto:FX.php_List at mail.iviking.org>
> http://www.iviking.org/mailman/listinfo/fx.php_list <http://www.iviking.org/mailman/listinfo/fx.php_list>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/0cb2c711/attachment-0001.html
More information about the FX.php_List
mailing list