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 Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188852
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