You can setup your server-side to do both the ajax and the non-js
submits.  you create one validation method that gets called either way.

~Terry 

-----Original Message-----
From: Josh Nathanson [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 14:25
To: CF-Talk
Subject: Re: Client-side validation or Server-side Validation?

> Why not just do both at once?

You can't do both at once.  Client and server each need an independent
approach.  The server must behave as if it is not at all dependent on
what the client sends it.

Thus you need to have CF code to handle validation on the server, and
javascript to handle validation on the client (if desired).

Even if you are doing ajax validations, you are still hitting the
server, and your independent CF code must handle that server call.
Also, if you are depending on an ajax call to validate, your
non-javascripters will not make the ajax call and so not validate.

-- Josh




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275457
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to