Whoops! One last thing. An 'onValidationFailure' type of method, allowing
someone to run some scripting should the validation fail (like resetting
data changes one might have made in the beforeSubmit call). You may even
want to split things further, with a 'beforeValidation' (occurring prior to
validation) separate from a 'beforeSubmit' (occurring after validation, and
prior to the form submit). Just a thought.

On 10/9/07, Steve Blades <[EMAIL PROTECTED]> wrote:
>
> > How about these?
> > - beforeSubmit: called before the validation starts
> > - success: called when the form is valid
> > - submitHandler: replaces the default submit, handler must do an
> > ajaxSubmit or whatever
>
> Sounds outstanding, as long as the submitHandler only covered an
> ajaxSubmit. If it was an all out replacement for the default submit handler
> then there wouldn't really be a need for the other two options, as all of it
> could be rolled into someone's new 'submit' function, rolling the
> $(form).submit() within their own handler. I guess it's just a question of
> implementation and documentation.
>
> Thanks again for the excellent work you do with JQuery.
>
> --
> Steve "Cutter" Blades
> Adobe Certified Professional
> Advanced Macromedia ColdFusion MX 7 Developer
> _____________________________
> http://blog.cutterscrossing.com
> ---------------
> The Past is a Memory
> The Future a Dream
> But Today is a Gift
> That's why they call it
> The Present
>



-- 
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com
---------------
The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present

Reply via email to