> -----Original Message----- > From: Andrew Grosset [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 11, 2007 12:56 AM > To: CF-Talk > Subject: Re: Javascript enabled > > My vote goes to Bobby's solution...elegant and simple > > There is a typo in the example though > change: > document.getElementById('theJSMessage').style.display='none'; > to: > document.getElementById('noJSMessage').style.display='none';
I've an (old, but still applicable) article here that does this: http://www.depressedpress.com/Content/Development/ColdFusion/Articles/GetRes /Index.cfm Basically you set a "noJS" variable as being zero. On the page one of the images (in the examples it's a single pixel, transparent GIF) is written by JavaScript (and sets several values to be sent). The image called is actually a CF page which updates the session values and returns the GIF image. Your user can log on normally but be redirected to a "you need..." page immediately following. If Script isdisabled the check will still fail if images are also disabled. So your "you need..." page would have to reflect that information as well. There are a lot of improvements I could see to this (the article is seven years old) but as it is it'll do the job. Namely you could use an existing page graphic and also output a "noscript" section to ensure that it get's called even if script is disabled. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293088 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4