[jQuery] jQuery Validation 1.0 Alpha
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.
Here's a good example of the moo and proto examples:
http://clientside.cnet.com/code-snippets/really-easy-field-validation-with-mootools/
Here's the js - http://clientside.cnet.com/scripts/validator/mooValidation.js
http://clientside.cnet.com/3rd-party-libraries/really-easy-field-validation-with-prototype/
You're right, there's no reason why jquery can't have a similar tool set.
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Jörn Zaefferer
Sent: Thursday, February 08, 2007 4:59 PM
To: jQuery Discussion.
Subject: [jQuery] jQuery Validation 1.0 Alpha
Hi folks,
there were some questions about my very first version of the validation
plugin (it's still on the plugin page). If you are interested in form
validation, you may want to take a look at the current state of the
plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
It's 1.0 version is now in alpha status: That means that I can't
guarantee to not change the API until the beta release. But apart from
that, the plugin is already pretty stable, and should provide nearly
everything you need for client-side form validation.
It uses the metadata plugin, therefore you can choose between
specifiying your validition in the markup via extra class infos or
custom attributes. Or, in case you don't want to use inline markup, you
can just pass the rules as a JavaScript object to the plugin (see the
examples).
The plugin is aimed at both fast prototyping and highly customized
validation: There are default messages for all provided methods
(required, email etc.) that can be overriden by using the title
attribute on input elements, specifying custom error messages in the
markup (the old method with labels) or via a JavaScript object passed to
the plugin.
The plugin page contains some more information about known issues,
migration from the old plugin and, in the extreme contrast to the old
version, a nearly complete documentation. I'm sure there is room for
imrovement, but at least it covers everything.
Demos ( http://jquery.bassistance.de/validation/validateTest.html )
cover also integration with the form plugin:
http://jquery.bassistance.de/validation/formPluginIntegration.html
Your feedback is highly appreciated! We should be able to create the
definite solution for jQuery form validation...
Regards
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/