[jQuery] Ajax validation preview

[jQuery] Ajax validation preview


Hi folks,
for anyone using the validation plugin or interested to use it once ajax
validation is available I'd like to present a preview of the next
validation feature upcoming in 1.2:
http://jquery.bassistance.de/ajax-validation/demo-test/milk/
To try it out: Enter something as a username. These are the rules used
for the field:
username: {
    required: true,
    minLength: 2,
    remote: "users.php"
},
In other words, you can stick with the declarative style to specify
validation rules as for all local validation.
Currently the scripts ("users.php") simply returns true for valid and
false for invalid values. This works in this case, but I can imagine
endless possibilites that need a more complex protocol. Therefore, as
always, I appreciate your feedback. Just let me know about your usecases
of ajax validation.
If you'd like to play around with the current code, its in jQuery's
subversion repository: http://dev.jquery.com/browser/trunk/plugins/validate/
Also available as a zip-file:
http://dev.jquery.com/changeset/2146/trunk/plugins/validate?old_path=%2F&format=zip
--
Jörn Zaefferer
http://bassistance.de