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(); });

Reply via email to