[jQuery] [form] stop success message return if validation fails on server side

2009-10-12 Thread HairyJim
Hi all, I am making a call to a php file which right at this minute has no validation, all validation is been done by the jquery form plugin. I post to the thanks file but if the validation (xss prevention soon to be implemented) in the thanks fails I want to stop the processing of the form i.e.

[jQuery] [forms] [ajax] Form submits, success message displayed but no data seems to be passed to php file

2009-09-16 Thread HairyJim
Hi all, I have this Jquery code, below, which I was hpoing would pass the data from the form over to form processing script but the problem I have is that the success is returned but the processing script does not seem to get the form data passed to it. I have tested the script is called by

[jQuery] Re: [forms] [ajax] Form submits, success message displayed but no data seems to be passed to php file

2009-09-16 Thread HairyJim
the data option, or better yet, the form's plugin ajaxSubmit method. It will handle the form serialization for you. Jörn On Wed, Sep 16, 2009 at 11:42 AM, HairyJim james.d...@gmail.com wrote: Hi all, I have this Jquery code, below, which I was hpoing would pass the data from the form

[jQuery] Re: [forms] [ajax] Form submits, success message displayed but no data seems to be passed to php file

2009-09-16 Thread HairyJim
).ajaxSubmit(options); } }); }); On Sep 16, 11:52 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Here is an example:http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-de... Jörn On Wed, Sep 16, 2009 at 12:39 PM, HairyJim james.d...@gmail.com

[jQuery] Re: [ajax] Form submits, success message displayed but no data seems to be passed to php file

2009-09-16 Thread HairyJim
' /); }); } }); } }); }); On Sep 16, 12:38 pm, HairyJim james.d...@gmail.com wrote: hmmm Im getting nowhere with this :/ So following the code on the page you suggested and the notes made about .ajaxSubmit I

[jQuery] [validate] [ajax]

2009-09-01 Thread HairyJim
Hi all, Still green with JQ. I have the following code which does work to a point except the validation runs but the form submits (via ajax) regardless. I know I need to change the code round, ajax in the the validate call - I think. Could do with help on this! $(document).ready(function() {

[jQuery] How do I run an ajax request on form submit?

2008-07-25 Thread HairyJim
Im new with jQuery and I have quite quickly turned a 54 line script into a 5 line jQuery script :) However all I want to do now is run an ajax request on the form submit but the problem I am finding is that it seems the form gets submitted before the ajax query returns its data - thoughts?

[jQuery] How do I do a Ajax request before form submits

2008-07-22 Thread HairyJim
Hi, I created a form which I wanted to submit using jQuery (I'm new to jq) but before the submit I wanted to run an ajax request and attach the returned result to the form for posting. However it seems the form submits before the ajax request is returned, I can see the code generated in the DB