[thelist] [Usability/Javascript] Client-Side Form Validation - Pros & Cons?

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Oct 18 11:05:01 CDT 2002


>Yes, "usability" and "javascript" in the same sentence... :P
>
>I want to know what your opinion/practice is about doing client-side
>validation of forms.

It's an excellent idea to do client side validation *in addition to* server
side validation.

>We always do server-side validation and I opine that we should be
>doing client-side validation to save on that "one-trip return" lag in
>the event there are required fields missing or there is an error in
>input. We always use the forms to not rely on JavaScript to be
>functional but at the same time to take use of the added functionality
>if JavaScript is enabled (majority).

I couldn't agree more. There are simply no disadvantages to this setup. The
server side validation ensures that the data is correct, whether the browser
supports JavaScript or not. The client side validation ensures that users
with JavaScript get a gentler and more comprehensible interface.

Go for it!

ppk

_________________________________________________________________
Get faster connections -- switch to MSN Internet Access!
http://resourcecenter.msn.com/access/plans/default.asp




More information about the thelist mailing list