Easiest way is to have your initialization page have a <script>location=index.cfm?js=sure</script>. now this can be done in as the entrance page and you can put a <meta http-equiv="refresh" content="4;url=index.cfm?js=hellno"> or it can be a inline frame or a popup. or you can do a ajax call back to the server.
on the server side you would have something like <cfparam name="session.gotJS" default="0"> and on the called pages by the above JS methods, you would have something setting to 1. but honestly if all you are doing is client side validation, who cares if they have JS on/off... (unless you are maximizing the optimization of bandwidth and don't event want to send the js code to the client) if they have it off, then it still gets caught on the server side which will throw the error and this will always good to happen just in case. if they have it on, js picks up automatically. ~Terry -----Original Message----- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 17, 2007 13:12 To: CF-Talk Subject: RE: Client-side validation or Server-side Validation? Sounds good, Ian... Maybe someone's heard of something like that. 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? Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275613 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4