<noscript><meta http-equiv="refresh" content="1;url=noscript.cfm"></noscript>
On 5/21/05, Simon Cornelius P. Umacob <[EMAIL PROTECTED]> wrote: > Kevin, > > As a ColdFusion newbie, I'm currently not aware of any CF function that would > detect the user's browser capabilities. However, I have an idea: using > JavaScript, just redirect the current page and pass a variable to itself. > Here's a code snippet to solve your problem: > > > <cfparam name="URL.isJSEnabled" default=false> > > <cfif URL.isJSEnabled eq false> > <InvalidTag type="text/javascript" language="javascript"> > // <![CFDATA[ > window.stop(); > window.location.href = "js.cfm?isJSEnabled=true"; > // ]]> > </script> > </cfif> > > <cfif URL.isJSEnabled> > <p>I am dynamic!</p> > <cfelse> > <p>I am static.</p> > </cfif> > > Regards, > > > [ simon.cpu ] > > > > >Hi, > > > >I would like my CF to be aware that the user has Turned Off Javascript and > >react accordingly. > > > >I was thinking of using a JS function to set a cookie and having CF look for > >it but I guess that won't work beacuse the first time a user visits the > >cookie would not get sent to the server since the page that makes it has not > >yet executed. > > > >Does anyone out there have any clever ideas on this? > > > >I guess the other problem is that they may have cookies turned off too. > > > > > >Kevin Roche > >Objective Internet Ltd > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207335 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

