******************************************************
i didn't send this to you.. sorry the reply u sent went to the wrong person.
******************************************************************************
At 04:44 PM 6/11/2001, you wrote:
>I would imagine its because you cannot use CFLOCATION and set cookies in the
>same template.  The cookie (client var) is only set AFTER the whole page has
>been processed.
>This may be the problem.
>Nick Betts.
>
>-----Original Message-----
>From: Perez, Bismark [mailto:[EMAIL PROTECTED]]
>Sent: 11 June 2001 16:03
>To: CF-Talk
>Subject: Weird problem setting client variable
>
>
>I have the weirdest problem setting a client variable and for the live of me
>I can not see where the problem is.  The problem is the following:
>
>I have a form where the user can change the language of the site, one of the
>fields on the form is a select box named "NewLang", now, once the user
>selects the new language the form is posted to a template (ChangeLang.cfm)
>which only function is to <cfset client.lang = newlang> and then
><cflocation> to the parent template.  The first line in the application.cfm
>is to <cfparam> for client.lang and set it to "en" if is not defined, some
>how it is always set to "en" because client.lang is not defined.
>
>Now I know app.cfm is always executed, so before ChangeLang.cfm is executed
>the client.lang is set to "en" then the template is executed and client.lang
>is set to the new language and a redirection occurs to the parent template,
>client.lang should contain the new language, but is not because the
><cfparam> resets it to "en".
>
>Can somebody see where the problem is...
>TIA
>
>Bismarck Perez
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to