Sounds good.
I also don't like the idea of using hidden fields.
I only skimmed your intro and took a look at the example (where I saw the 4 .js
files required which raised the red flag)
But yes, I see that we could consolidate this code into a single plugin.
I don't know how much I like the class="{...}" style though. Something feels
odd with the brackets there - any chance this is causing the issues in other
browsers?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer
Sent: Friday, February 09, 2007 11:12 AM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery Validation 1.0 Alpha
Kevin Fricovsky schrieb:
> You're library though seems to be very robust, I'm just concerned with the 3
> (or is it 4) js scripts required for it to work.
>
> I too am a fan of Particle Tree's unobtrusive style of form validation:
> http://particletree.com/features/a-guide-to-unobtrusive-javascript-validation/
>
> I'm working on a project right now that may allow for me to work on a
> solution similar to the ones below using Jquery.
>
> Yup, know this is the Jquery mailing list but I really like the examples I've
> seen using prototype or mootools.
>
Thanks for you reply!
I've got the feeling that you should take a closer look at my plugin.
The stuff you mentioned is not that fancy and already covered. Looking
at the links you posted, I haven't seen anything new at all. I know the
initial "really easy" Prototype based validation and adapted some
concepts from them. The "guide to unobtrusive javascript validation"
features hidden fields, classes and custom attributes for metadata. I
never considered hidden fields as they are rather obtrusive and cause
more data to be submitted then I'd like to. Both classes and custom
attributes are supported by my plugin. And the mootools validation says
that is only a rewrite of the Prototype one based on mootools.
The code can and should be packaged into one file, required are only
jQuery and the validation plugin itself, in case you prefer to specify
validation rules via JavaScript instead of metadata. The validation
script itself is more then 50% documentation/comments, it's pretty small
when compressed.
Mike is working on some nice integration with the form plugin, that
should be more convenient then a custom submit handler.
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/