I have realized that I am having a problem with client variables, but I
don't know why.  I get this message when I try to set a client variable:

Message:
The requested scope client has not been enabled. 

Details:
Before client variables can be used, the client state management system must
be enabled using the CFAPPLICATION tag.

However, I do have the clientmanagement="yes" attribute set in the
CFAPPLICATION tag.  What am I doing wrong? Is there anything I should be
checking on the server?

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 28, 2004 8:52 AM
To: CF-Talk
Subject: Mach-II & client variables

Question for the Mach-II people on this list -
        I have a dropdown box that appears on every page, in its own form on
each page of my small application.  I'd like the most recently selected item
on this dropdown box to be selected whenever I move to a new page view. I
can set a variable that holds the last value selected whenever the dropdown
is changed, but when I move to a view that does not pass the dropdown box
into the form scope, I lose the most recently selected value and it moves to
the default value on the next view.  
        I tried placing the MRU value into both session and client
variables, and enabling client and session variables in the CFApplication
tag, but I just got an error.  Also, the most logical place for me to put an
assignment for this variable is in a CFC, but I see that Mr. Corfield does
not recommend doing this:

"It's not that CFCs cannot access scope variables, just that they
should not in general (since it breaks encapsulation). The general
approach is to create a CFC whose sole job is to 'wrap' the scope
access so as to hide it from the rest of the app."

http://lists.topica.com/lists/mach-ii-coldfusion/read/message.html?mid=81031
3532&sort=d&start=2193

So where/how can I create a variable that persists this information?

Thank you,

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188853
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to