Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
mc7628 #1
Link to specific section of a page
I am converting static html files to cfm. One of the links in the html file is
coded as [url]http:///nextPage.html#section5[/url], sending the user to a specific section
of the linked page. I've tried a few ways to do this in CF, such as
[url]http:///nextPage.cfm##section5[/url], but I keep getting errors. Also tried it as a
CFINCLUDE and CFLOCATION. Is this even possible in CF?
mc7628 Guest
-
html link to a specific excel sheet
Hi, here is my problem: I have a link to an excel-doc. But now I want to heve that link to a specific page of that excel-doc. Is that... -
Link to specific Folder
Using Acrobat 6 - Link question, Is it possible to have a link in a pdf file linking to a folder (not file) in the same directory. Would like... -
how to add link to a specific page in a pdf?
I think (hope) this is a simple question - I have a one page pdf that serves as a table of contents for a separate, larger multi-page pdf. Can I... -
How do I link to specific pages in another PDF file?
But clicking on the links merely opens the target file at page 1, i.e. it won't open at the chosen page within the selected file. If Mr.... -
??? on how to link to a specific part of an image
Hello, The easiest way to do it is to define the anchor namee in Dreamweaver. So ...in Fireworks, include the achor name in your link. For... -
mc7628 #2
Re: Link to specific section of a page
Sorry, my post was a bit inaccurate. The link is presently coded as <a
href="nextPage.html#section5"> in the static html. The new link will need to
read something like <a href="nextPage.cfm##section5">
mc7628 Guest
-
BSterner #3
Re: Link to specific section of a page
You only need the double # sign if it's enclosed w/i a <cfooutput> tag.
Eg)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Pound Sign Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="#mylink1">Here is an anchor outside cfoutput</a>
<br>
<br>
<cfoutput><a href="##mylink2">Here is an anchor inside cfoutput</a></cfoutput>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a name="mylink1" id="mylink1">myLink1</a>
<br>
<a name="mylink2" id="mylink2">myLink2</a>
</body>
</html>
BSterner Guest
-
mc7628 #4
Re: Link to specific section of a page
That is fine if the link navigates within the same page. I need to navigate
from Page A to a specific location within Page B.
The link in PageA.html:
<a href="PageB.html#section5">.
PageB.html code:
<A NAME="section5">Section 5</a>
Now both PageA and PageB are now .cfm, and you cannot append '#section5' to
the URL. It will cause an error.
mc7628 Guest
-
BSterner #5
Re: Link to specific section of a page
So if you copy the above code into a new file, name it 'links2.cfm' and change
the hyperlinks to be...
<a href="links2.cfm#mylink1">Here is an anchor outside cfoutput</a>
<br>
<br>
<cfoutput><a href="links2.cfm##mylink2">Here is an anchor inside
cfoutput</a></cfoutput>
You get an error? Javascript error or CF error. It worked just fine for me.
BSterner Guest



Reply With Quote

