> RIGHT! You understand this, correct? Can't say I understand how it's done, but I do submit to the chorus of voices on the list saying it's so...
Thanks for the tip on the info! Rick -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 17, 2007 2:26 PM To: CF-Talk Subject: RE: Client-side validation or Server-side Validation? " Use CF as the basis for validation, then if JS is on, generate some JS client-side validation code and use CF for server-side. If JS in not on, just use CF validation, both client- and server-side... Is there a fool-proof way to determine whether or not someone is using JS? " I would not work so hard. You are going to validate server-side no matter what! If you don't you are leaving yourself open to all kinds of trouble from people who can bypass your client side validation and send any data they want to your system. RIGHT! You understand this, correct? Now I can imagine it would not be hard to do this validation in a manner that the same rules could be used to build the appropriate JS code (it's no different then generating HTML code) for the client side validation. Just write the JS to not be a hindrance if it is disabled, then who cares if the user has it on or off. Just make sure you don't create any controls that don't work without JS, they just work NICER if the JS is running. So you spend a little bandwidth sending unused JS to clients that don't use it. I would think this would be much easier to deal with then trying to create some complex system the switches the code one way or the other depending on some not 100% reliable browser check. I have found this resource [http://www.quirksmode.org/js/contents.html] to be very informative for how to write good JS that enhances a user experience without being a determent if it is disabled. It's got some great CSS information as well. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275618 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

