cancel
Showing results for 
Search instead for 
Did you mean: 

How do you make #nameddest work in firefox, it work for IE

SOLVED
Highlighted
New Contributor

How do you make #nameddest work in firefox, it work for IE

If I add a #nameddest at the end of a web link and open it in IE, it works fine and goes to the named destination, if I open the same link in firefox it just goes to page 1 every time? Am I doing something wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
Legendary Contributor

Re: How do you make #nameddest work in firefox, it work for IE

Aha, a PDF is different than a web page!

For me, that link scrolls down to the 15th page, which seems a bit random. I tried Firefox 20.0.1 and Firefox 21 beta 7, both using the built-in PDF viewer (introduced in Firefox 19). Are you testing in the viewer, or in Adobe's plugin?

There was a bug in the viewer, fixed a little over 3 weeks ago, however, Firefox doesn't pick up these changes immediately.

References:

5 REPLIES
Legendary Contributor

Re: How do you make #nameddest work in firefox, it work for IE

Let's say you have this link: example.com/page.html#section2

That will scroll the page to either of these:

<div id="section2">
<div><a name="section2"></a>

Notice that the id or name value does NOT contain the hash mark (#). If your id or name value contains the hash mark, then you have to double the hash mark in your link.

Does that help?

Legendary Contributor

Re: How do you make #nameddest work in firefox, it work for IE

There have been some examples here in the past where Firefox went to the wrong part of the page (such as the bottom). This can happen when the page length changes dynamically after the content loads. However, this is difficult to diagnose without a link, so if the general comment didn't help, can you reply with a link to the problem page?

New Contributor

Re: How do you make #nameddest work in firefox, it work for IE

Thanks a lot for taking time to help, it is much appreciated! Unfortunately it still doesn't work, see the link below

http://www.haztec.biz/images/downloads/Vehicle%20sirens%20V1.8.pdf#undermount

It just opens at the front page as if the named destination is not there.

I also tried

http://www.haztec.biz/images/downloads/Vehicle%20sirens%20V1.8.pdf#nameddest=undermount

Th second one works fine in IE but not in firefox.

Legendary Contributor

Re: How do you make #nameddest work in firefox, it work for IE

Aha, a PDF is different than a web page!

For me, that link scrolls down to the 15th page, which seems a bit random. I tried Firefox 20.0.1 and Firefox 21 beta 7, both using the built-in PDF viewer (introduced in Firefox 19). Are you testing in the viewer, or in Adobe's plugin?

There was a bug in the viewer, fixed a little over 3 weeks ago, however, Firefox doesn't pick up these changes immediately.

References:

New Contributor

Re: How do you make #nameddest work in firefox, it work for IE

Thanks I was using the built in viewer, I tried disabling the built in viewer but to no avail, it continued to use the built in viewer whether I liked it or not! I don't really understand what a PDF.JS library is, but I installed it from the link you sent and the named destination works fine now. The problem is though that If other people use the link on different machines, presumably the named destination won't work for them.

Hopefully all will be well when the latest bug fix rolls out globally?