The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Internal links not working
Leezinho
post Feb 21 2019, 11:58 AM
Post #1


Newbie
*

Group: Members
Posts: 11
Joined: 21-February 19
Member No.: 26,828



I have some links internal to the document, in a Table Of Contents at the top. When I click on one of the highlighted section titles, it should go to that section in the same document. I have tried three solutions, but none of them work. My anchors in the body of the document are named with a short form of the section title, with no "#" at front.

(I'm converting the HTML document to PDF. In the PDF document, _external_ links work okay.)

(1) <a href="#secTitle">Section Title in TOC</a>
TOC gives a little jump.

(2) <a href="fileName.pdf#sectTitle">Section Title in TOC</a>
Nothing.

(3) <a href="files/theme/fileName.pdf#sectionTitle">Section Title in TOC</a>
The webhost (Weebly) gives me a light blue screen with "Bye!" on it.

When I open the box for "Link Properties" of the TOC item, the ballot box for "URL is relative to page location" is already checked. That looks correct; when I uncheck it, the address refers to a file on my computer ("file:///c:/..."), which I don't want when I upload.

Suggestions?

This post has been edited by Leezinho: Feb 21 2019, 12:00 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Feb 21 2019, 02:37 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



QUOTE(Leezinho @ Feb 21 2019, 05:58 PM) *

(1) <a href="#secTitle">Section Title in TOC</a>
TOC gives a little jump.

The above link looks correct, but if the distance to the targetted element or the bottom of the page is small, then all you'll get is a small jump.

QUOTE
(2) <a href="fileName.pdf#sectTitle">Section Title in TOC</a>
Nothing.

I don't know how PDF files work, so no idea if the above is possible even in browsers that display PDF files.

QUOTE
(3) <a href="files/theme/fileName.pdf#sectionTitle">Section Title in TOC</a>
The webhost (Weebly) gives me a light blue screen with "Bye!" on it.

Don't know what that Weebly message is supposed to mean, but is the URL "files/theme/fileName.pdf" valid in the first place?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 21 2019, 03:58 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



I didn't see that one link leads to a PDF. It's supposed to work. Haven't tried in many a year, but I never got it to work when I did.
https://helpx.adobe.com/acrobat/kb/link-htm...ge-acrobat.html

Didn't see the bit about the little jump either. blush.gif Good Christian caught it.

I don't find a good example now, but if you go for instance here http://htmlhelp.com/tools/widgets/#license , you can see that the License topic doesn't scroll to the top because there isn't enough page left for it to do that. For that reason it will under most circumstances look the same as http://htmlhelp.com/tools/widgets/#issues and http://htmlhelp.com/tools/widgets/#acknowledgements .

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 07:46 PM