Of the top of my head, try a different syntax.
var CurrCompareValues = document.myform["Session.CompareList"].value;
Does that work?
Ade
-Original Message-
From: Chad McCue [mailto:[EMAIL PROTECTED]
Sent: 23 March 2005 19:52
To: CF-Talk
Subject: Reading Session Variables
Does anyone k
> Does anyone know if it is possible to read session variables
> withing Javascript?
>
> Example,
> Have a session variable called "CompareList"
>
>
> value="#Session.CompareList#" />
>
>
> JS:
> function ReadList() {
> var CurrCompareValues =
> document.myform.Session.Com
It's not possible since session vars are server side only.
Regards,
--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
PrismAV - Virus scanning for ColdFusion applications
>>> Find o
alues = document.myform.Session.CompareList.value;
Ade
-Original Message-
From: Howie Hamlin [mailto:[EMAIL PROTECTED]
Sent: 23 March 2005 20:04
To: CF-Talk
Subject: Re: Reading Session Variables
It's not possible since session vars are server side only.
Regards,
--
Howie Hamlin - inFusi
You can output cf variables in your javascript like this:
Alert("#session.mysessionvariable#mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 2:04 PM
To: CF-Talk
Subject: Re: Reading Session Variables
It's not possible since session vars are server side only.
Regards,
--
Ho
5 matches
Mail list logo