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

Steve Winter steve at bluecrocodile.co.nz
Fri Nov 7 08:48:19 MST 2014


Hi Bob

I’m surprised that it’s preventing the post, but you could try adding a 
	return true;
to the end of that function, which would tell the browser that the default action (the post) should happen.

Does the form post as expected if you don’t add this handler…?

Cheers
Steve

> 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
> http://www.iviking.org/mailman/listinfo/fx.php_list

Steve Winter
+44 777 852 4776
steve at bluecrocodile.co.nz



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


More information about the FX.php_List mailing list