On Jan 16, 6:30 pm, Jack Killpatrick <[EMAIL PROTECTED]> wrote: > Hi Jörn, > > Good to hear about this, thanks very much. Some quetions: > > 1. Is there a "what's changed" doc somewhere?
Yes, every release contains a changelog (changelog.txt in the base directory): * Added AJAX-captcha validation example (based on http://psyrens.com/captcha/) * Added remember-the-milk-demo (thanks RTM team for the permission!) * Added marketo-demo (thanks Glen Lipka!) * Added support for ajax-validation, see method "remote"; serverside returns JSON, true for valid elements, false or a String for invalid, String is used as message * Added highlight and unhighlight options, by default toggles errorClass on element, allows custom highlighting * Added valid() plugin method for easy programmatic checking of forms and fields without the need to use the validator API * Added rules() plguin method to read and write rules for an element (currently read only) * Replaced regex for email method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/email_address_validation/ * Restructured event architecture to rely solely on delegation, both improving performance, and ease-of-use for the developer (requires jquery.delegate.js) * Moved documentation from inline to http://docs.jquery.com/Plugins/Validation - including interactive examples for all methods * Removed validator.refresh(), validation is now completey dynamic * Renamed minValue to min, maxValue to max and rangeValue to range, deprecating the previous names (to be removed in 1.3) * Renamed minLength to minlength, maxLength to maxlength and rangeLength to rangelength, deprecating the previous names (to be removed in 1.3) * Added feature to merge min + max into and range and minlength + maxlength into rangelength * Added support for dynamic rule parameters, allowing to specify a function as a parameter eg. for minlength, called when validating the element * Allow to specify null or an empty string as a message to display nothing (see marketo demo) * Rules overhaul: Now supports combination of rules-option, metadata, classes (new) and attributes (new), see rules() for details > 2. What's the minimum version of jquery required to use this version of > the validate plugin? Validation 1.2 requires jQuery 1.2.2 (it requires jquery.delegate.js which uses the new special event system). > 3. Are all of the demo's using RC1? Yes, notice the new use of attributes and classes in the demos. Metadata and standard rules setup are still supported in 1.2, but the new rules() method makes the plugin much more flexible and requires a whole lot less setup! > 4. Is the metadata plugin still required in order to use metadata for > setting up validation, or has the needed functionality from that been > absorbed into the validate plugin? If so, what is the minimum version of > the metadata plugin required? You can now use the validation plugin without the metadata plugin. Where you used to do: class="{required: true, minLength: 5}" you can now do: class="required" minlength="5" or: required="true" minlength="5" Also, look into the new addClassRules method for creating complex rules that are all contained in one class name.