> > -----Original Message-----
> > From: Erika L Walker-Arnold [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 22, 2005 1:14 PM
> > To: CF-Community
> > Subject: RE: client- or server-side, or both?
> >
> > Personally, no matter what, I'd do server side first. Get it functional.
> > And working.
> > Then add JavaScript as a backup.

I agree completely with this but don't like the word "backup".  I find it
easier to consider from this angle:

Server-side validation is there to protect your system.  You stop bad data
from getting in.  You focus on potential attacks and malformed data.  You
must do this server-side since this is the only place you have complete
control.

Client-side validation is there to improve your user-experience.  You add it
to make using your system faster, more comfortable and less frustrating.

Essentially you must add server-side validation.  It's there to protect you.
Not adding it is reckless.  Client-side validation, on the other hand, is
there for the user.  You should only consider adding it if it actually
improves usability.

So (in my opinion) client-side validation isn't really a "back-up" at all
(in the sense that client-side validation can't do what server-side
validation does: namely protect the system) it's purely a usability issue.
Although they may perform similar tasks they are applied for completely
different reasons.

Sorry for being so pedantic, but doing usability for a living makes you
sensitive to stuff like this.  ;^)

(As a P.S. it should be pretty clear that they mix, at least downstream.
While client-side validation can never truly protect your web application
server-side validation does have to take usability into account.  In that
way the server-side is both protective and user-assistive while client-side
is really only user-assistive.)

Jim Davis




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only 
good for you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:151494
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to