see reply to previous mail...

Ian W

----- Original Message ----- 
From: "Alex Skinner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 2:34 PM
Subject: RE: [ cf-dev ] js and cf


> When you click the button refresh the current page and append a url
> variable with translate=French 
> 
> Or whatever
> 
> Check the url var and then set the session.
> 
> This session can then be used from then on
> 
> Then code in the page says if Session var exists or url var exists with
> a language write out or not write out the stuff you want which is
> optional.
> 
> You cant do it without a page refresh unless you use a javascript pipe
> and writetoDiv but that's going to be messy as all hell.
> 
> HTH
> 
> Alex
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Ian Westbrook [mailto:[EMAIL PROTECTED] 
> Sent: 07 July 2003 13:16
> To: cfug dev list
> Subject: [ cf-dev ] js and cf
> 
> 
> Hi
> I'm using some code I ripped from Google to translate my site into 5
> European languages. If someone clicks a form button to translate, I want
> to set a session var in CF so that I can then test for it to see whether
> to output stuff I don't want foreign-language users to get
> (registration, quote of the day etc)
> 
> what I want is this:
> 
> 
> // form button
> <input type=submit value="Translate" onClick="setvar()">
> 
> //script
> 
> <script language="javascript">
> function setvar(this) {
> document.write ("
> <CFLOCK 
> SCOPE=\"session\" 
> TIMEOUT=\"30\" 
> TYPE=\"Exclusive\">
> <cfset session.translate = \"yes\">
> </CFLOCK>
> }
> </script>
> 
> I haven't tried that cause I don't think it's going to work, but it
> demonstrates what I need.
> 
> anyone any ideas?
> 
> TIA
> 
> Ian W
> 
> Ian Westbrook,
> FutureDream Media Limited,
> (W): www.futuredream.net
> (E): [EMAIL PROTECTED]
> (T): +44 (0) 1303 258 985
> (M): 07939 510 812
> 
> This message may contain information which is legally privileged and/or
> confidential. If you are not the intended recipient, you are hereby
> notified that any unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such notification
> notwithstanding any comments, opinions, information or conclusions
> expressed in this message are those of the originator, not of
> FutureDream Media Ltd, unless otherwise explicitly and independently
> indicated by an authorised representative of FutureDream Media Ltd.
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to