I am not sure why you can't use the url scope inside of your cfoutput.

Inside of a cfoutput query='', you don't need to repeat the query name (eg.
'qGetTitle.thisid' can be referred to as just 'thisid'), however you can use
any other variable that was on the page.

url.campus should return 130 anywhere it is called on the page.  So if you
were to create a list of hrefs...
<cfoutput query="qGetTitle">
        <a
href="/libr/reviews/#campusname#/index.cfm?campus=#url.campus#>#campusname#<
/a>
</cfoutput>
 The reference to the url.campus would pull the value from the url scope.

Hope this helps,
William


-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer / ColdFusion Programmer
http://William.Seiter.com

-----Original Message-----
From: John Ahlen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 05, 2008 9:51 AM
To: CF-Newbie
Subject: Persisting a variable

Here goes.  Hope some of you can help!

I'm using the URL to define css.  The entry URL is:

http://localhost:8500/libr/reviews/elempublic/index.cfm?campus=130

Once the page is entered a query is executed using the campus value,
retrieving colors from a database, which in turn are inserted into the
page's css, creating the expected look and feel.

All works great on the first page, which executes a query of it's own. This
query creates a set of URLs.  Now since these URLs are wrapped in a
<cfoutput query="qGetTitle"> I can't insert the URL variable into them.

What would be the best way to persist the campus value in a session so that
as the user navigates through the pages, the css will retain the initial
values? =30099.21321.15


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3303
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to