ok, I got it... If you place the callback function within the
validation script then it fires twice for some reason... I have placed
it outside of the function and now it works properly. I'll see how I
fair on the rest of it.

Thanks!

On Mar 15, 10:20 pm, MonkeyBall2010 <hughes.timo...@gmail.com> wrote:
> This may sound like a simple question but where would I place this
> callback function? Does it go within my validation function:
>
> $(#form).validate({
>      $(#form).ajaxForm(function() {do stuff});
>
> });
>
> or would it go outside of this function? Currently my submitHandler is
> inside of the my validation function and it works correctly. Is this
> the proper section to place this type of function?
>
> Thanks,
> Tim
>
> On Mar 15, 7:45 pm, brian <bally.z...@gmail.com> wrote:
>
>
>
> > On Sun, Mar 15, 2009 at 8:24 PM, MonkeyBall2010
>
> > <hughes.timo...@gmail.com> wrote:
>
> > > I'm still trying to figure out how to make actions happen with an AJAX
> > > button submit. Right now I am using the jQuery Validation plugin to
> > > validate my form and then the Forms plugin to perform an AJAX submit.
> > > I have the validation and AJAX submit working perfectly right now but
> > > I was hoping to add just a bit more after the submit button has been
> > > pressed, the form validated, and the information sunmitted. I was
> > > hoping to pop up a modular window with a small box that says Thank You
> > > and then redirect the user to a new page.
>
> > You can provide a callback function that will be called on success:
>
> > $('#the_form').ajaxForm(function() { do.whatever(); });- Hide quoted text -
>
> - Show quoted text -

Reply via email to