> I don't speak JavaScript, so be easy on me. But would
> something like the following work in Application.cfm? Rather
> than the self.location part, I would rather set a thread-safe
> JS variable for checking the second time the app is accessed.
> Any suggestions?
>
> best, paul
>
> <CFIF NOT IsDefined("Client.JavaScriptOn")>
> <CFSET Client.JavaScriptOn = "No">
> <cfoutput>
> <script language="JavaScript">
> <!--
> self.location = "#CGI.Script_Name#?JavaScriptEnabled=Yes"
> // -->
> </script>
> </cfoutput>
> <CFELSE>
> <CFIF IsDefined("URL.JavaScriptEnabled")>
> <CFSET Client.JavaScriptOn = "Yes">
> </CFIF>
> </CFIF>
This would work. There are lots of alternative ways to do this, but they all
boil down to having a batch of JavaScript send some data back to the server
via URL, form or CGI variables, and detecting that data on the server in CF.
I'm not sure what you mean by "setting a thread-safe JS variable for
checking the second time".
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists