Paul schrieb:
> What you described is basically what I do, Rick--not because Jorn's plugin
> didn't work but because many of my form fields are validated against each
> other, and database interaction is required to make that decision. (e.g.,
> the validity of field Y depends on the value already entered in field X.)
> 
> Below is the validate function I call onBlur from each input.  It first sets
> the field's status icon to a loading spinny, then requests validation from a
> CFM file, passing the value of the current field as well as the value of the
> dependent criteria, which CF handles (cfswitch/cfcase) depending on which
> field is passed.  The callback receives the response and shows either a
> success or error icon with a descriptive error attached in a stylish little
> error message balloon.
> 
> I don't know if this is the smartest method--I'm pretty new to jQuery
> myself--but it has worked very well and provides the flexibility I need.
> 
> HTH,
> Paul

The good thing about such an approach is, that you have to implement 
server-side validation anyway - client-side validation can never be more 
than an addon to enhance user experience unless you can rely on 
JavaScript being enabled. So why not reuse that logic client-side as 
well for single fields. You improve the user experience while all logic 
is still in place.


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to