Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFTREEITEM - HREF Referencing URL from Query

Status
Not open for further replies.

johnpat

Programmer
Apr 18, 2002
1
US
I would Like to Link to a URL derived from a query in a Cold Fusion multilevel CFTREE/CFTREEITEM Control. I can do it if I use a static URL, but I want to get the URL From a Table.
CFTREEITEM
....
HREF ",,,,The Above Works.
HREF ",,,,#geturl.url#
The Above does NOT Work
I know it a just a mtter of formatting it correctly, but I have not been able to figure it out.
Any Assistance would be appreciated.
 
I'm guessing you didn't copy all of your code but I noticed the piece of code that doesn't work is missing the quotation marks and semi-colon.

I would think this is just a simple formatting problem since you should be able to just replace the &quot; with &quot;#geturl.url#&quot; and it should work fine. What happens if you just output #geturl.url#? Do you see the exact string as the hardcoded example? I'm guessing you don't have the &quot; in your database or something similar. If you output the value instead of putting it in a <cftreeitem>, it should be easy to spot.

Good luck,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top