Jörn
On Sun, Mar 29, 2009 at 6:08 AM, jmarnold <rnCodePoet@gmail.com> wrote:
>
> I'm working on integrating the validate plugin with ASP.NET. I have
> the basic validation working just fine but I'm running into a few
> limitations of the plugin now with regards to ASP.NET's concept of
> CausesValdiation and ValidationGroup. I envision having some sort of
> grouping mechanism of rules by name. I think this goes beyond ASP.NET
> integration as it would allow for simple validation of sub-forms.
> Maybe something like:
>
> $('#myform').validate({
> rules: {
> 'SignUp' : {
> firstname: {
> required:true,
> validationGroup: 'name'
> }
> }
> }
> });
>
> I'm not sure of the best way to trigger the validation of that rule
> set. Maybe there could be some sort of submission method through the
> validator that would handle that? (e.g.,
> ('#myform').submitThroughValidation('SignUp')).
>
> It would also be great to specify a selector for elements that can
> bypass validation. Perhaps something like:
>
> $('#myform').validate({
> skipValidation: '#cancelButton'
> });
>
>
No comments:
Post a Comment