Hi Arun
 
If you need to display a # inside of a cfoutput tag then you will need to add another one to it so that CF will know what to do with it. I.e. ## between cfoutput's will display #.
 
For your problem, I would try
 
<a href =" "###anchorName#">
 

Regards

Gordon Lipp

Systems Technician
Guelph Public Library
http://www.library.guelph.on.ca

-----Original Message-----
From: Arun Persaud [mailto:[EMAIL PROTECTED]]
Sent: April 10, 2002 4:39 PM
To: [EMAIL PROTECTED]
Subject: [CFTALKTor] Anchor Tags in a cfm page

I'm creating a standard FAQ page. Numbered "questions" at the top of the page, "answers" further down. But it's not working in CF.
 
In an HTML page,  <a href="faq.html#whatever"></a> 
is used to call the anchored answer on the same page.
 
My questions and answers are being called from a database. What am I missing?
 
<------  FAQ QUERY ------->
<CFQUERY NAME="faq" DATASOURCE="dbname">
SELECT  *
FROM faq
</CFQUERY>
 
 
<------  QUESTION ------->
<CFOUTPUT QUERY="faq">
<a href = " "#anchorName#">#question#</a>
<br>
<br>
<br>
<br>
<br>
<------  ANSWER ------->
<a name = "#anchorName#">#answer#
</CFOUTPUT>
 
 
 
Thank you.
 
Arun.

Reply via email to