Sure you can... He wants just to set a session variable. Try this: <script language="JavaScript"> <!-- window.location="save-sessions.cfm?NavigatorAppName="+navigator.appName+"&Na vigatorAppVersion="+navigator.appVersion //--> </script> and then save-sessions.cfm <CFSETTING ENABLECFOUTPUTONLY="Yes" SHOWDEBUGOUTPUT="No"> <CFCONTENT RESET="Yes" TYPE="text/plain"> <CFHEADER STATUSCODE="204" STATUSTEXT="No Content"> <CFHEADER NAME="Connection" VALUE="close"> <CFSET Session.AppName=URL.NavigatorAppName> <CFSET Session.AppVersion=URL.NavigatorAppVersion> The trick is statuscode of 204 (No content.) It will disallow window.location from really changing the page. You can use it for other stuff, like db access, but then you loose any error reports so use sparingly. ;-) <Jaime/> > -----Original Message----- > From: Rob Keniger [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 08, 2000 7:23 PM > To: CF-Talk > Subject: Re: GRABBING, JAVASCRIPT, VARIABLES, IN, CF > > > on 11/9/00 9:19 AM, S R at [EMAIL PROTECTED] wrote: > > > How do I set a variable in CF from a javascript? > > You can't. CF executes server-side, JS client-side. You could pass the > result as a form value to another CF page which stores it as a session var > though. > > Although, for this you'd be better off using the cgi environment variable > #cgi.http_user_agent# in CF. > > -- > > Rob Keniger > > big bang solutions > > <mailto:[EMAIL PROTECTED]> > <http://www.bigbang.net.au> > > ------------------------------------------------------------------ > ------------------------------ > Archives: http://www.mail-archive.com/[email protected]/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > or send a message with 'unsubscribe' in the body to > [EMAIL PROTECTED] ------------------------------------------------------------------------------------------------ Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]

