Ask a Question related to Coldfusion Database Access, Design and Development.
-
Caldew #1
Linking to a Page URL from a dynamic page
Hello I have an Access db table which contains a field called URL. I have
previously <cfset display_url = #rsListHistory.URL#>. When I display the list
of records I am successfully showing the correct URL to click in order to call
the required .cfm page. The code that I am using is listed below. The URL of
the page is [url]http://www.dalston.org.uk/History/index.cfm[/url]. I have 2 dynamically
displayed items and the each show the correct URL link to the required page.
However, when you click on the second link it displays the page from the first
link. Obviously something is missing in the CF code in relation to the
display_url variable. I would appreciate some pointers to solve this. Also,
and very much related, how do I avoid showing the URL? I would prefer to show
a bit of text like 'Click for Item', but the underlying link would go to the
correct URL which is held in the History.URL (the URL field in the Access
database). Your help will be appreciated. Ronnie
<cfoutput query="rsListHistory" startRow="#StartRow_rsListHistory#"
maxRows="#MaxRows_rsListHistory#">
<tr>
<td><cfif rsListHistory.RecordCount GT 0>
<font size="2" face="Arial, Helvetica,
sans-serif">#rsListHistory.Topic#</font> </cfif></td>
</tr>
<tr>
<td><font size="1" face="Arial, Helvetica,
sans-serif"><a href=#display_url#>#rsListHistory.URL#</a></font></td>
</tr>
<tr>
<td><hr></td>
</tr>
</cfoutput>
Caldew Guest
-
Trouble linking from web page to specific page in a PDF
I'm having trouble linking to specific pages within a pdf. I've tried using page #'s and creating destinations in the pdf (my destination is called... -
Dynamic XML page styled with XSL page
I cannot make the XSL file create dynamic links properly. I wanted to link a dynamic field to another dynamic field. I can make this much happen,... -
linking to a page
I want to give some background information first: I am making an online book selling/trading for a small group of people. They can request a... -
linking to items on a page
I've been trying to find out how to link from the top of a page to an item on the page. I have a book list, and I want to put a list of the... -
Dynamic page generation page examples?
Hoping to add a "generate your own web service" feature to my application. I have been searching MSDN and other places for an example of .NET code... -
philh #2
Re: Linking to a Page URL from a dynamic page
Hi Ronnie, When you set display_URL outside of the CFOUTPUT query loop, you
set it equal to the value of the field in the first record of the query
results. That won't change in your output. Just use the straight value from
the record. HTH,
philh Guest



Reply With Quote

