In-page link not working in Firefox
I have an in-page link that is not working. In a web page , which I maintain using Front Page, I have the following which works fine" <a href="#Top" name="Top"></a> ..... <a href="#Nov2016US">Nov 2016 US</a> ..... <a name="Nov2016US" href="#Nov2016US"></a>Nov 2016 - US ..... < a href="#Top">back to top</a>
In another webpage generated by a program I have the following which does not work: <a href="#moreresults">More Results</a> ..... <a name="moreresults></a>
Can anyone explain what might be the problem? The code which does not work seems similar to the code that does work. The same Firefox browser (version 49.0.1) on the same pc is used in both cases.
All Replies (10)
In your second example, a closing quotation mark is missing on the name="" attribute, but that might not be a problem in your actual page.
Is the non-working page loaded in a frame? Some users have noted that Firefox doesn't always follow internal links when communicating between frames.
Yes the missing quotation mark is not missing in my actual program.
There are a couple of frames; one in the <head> and one in the <body>.
The link does not take place between frames but in the <body>
In theory it should work. Can you link to a page that demonstrates the problem?
Unfortunately I can't do that as there is personal medical information on the page.
I have removed private stuff from the code and here are the HTML lines that are output:-
<meta http-equiv='~"Pragma~"' content='~"no-cache~"'> <meta http-equiv='~"Expires~"' content='~"-1~"'> <title></title> <link rel='~"stylesheet~"' media='~"all~"' type='~"text/css~"' href='~"/css/cssmenu.css~"'> <script language='~"JavaScript~"'> function checkAll(theName) ~{ for (i=0,n=lettersRecip.elements.length;i<n;i++) if (lettersRecip.elements[i].className.indexOf(theName) !=-1) ~{ lettersRecip.elements[i].checked = true; ~} ~} </script>
Letters - Recipient
<form name='~"form1~"' id='~"lettersRecip~"' action='~"view-pe-letters.html~"' method='~"post~"'>The sequence you are trying to view is closed.
Click here to return to the recipient letter selection index.
Sequence Number: ' w_seq '
ID | PHM/PHY Name | Prescription Count | Total Prescriptions | Letter History | ||
' pe_phy_recip.t1d0-recip-cur-pcn ' ' recip.pat-first-name ' ' recip.pat-last-name ' ' recip.birth-date ' - Add notes        <input type='~"button~"' name='~"selectall~"' value='~"Select' onclick="~"checkAll(~''" pe_phy_recip.t1d0-recip-cur-pcn=""> | ||||||
PHY | ||||||
' pe_phy_recip.t1d0-recip-cur-pcn ' ' recip.pat-first-name ' ' recip.pat-last-name ' ' recip.birth-date ' - Add notes        <input type='~"button~"' name='~"selectall~"' value='~"Select' onclick="~"checkAll(~''" pe_phy_recip.t1d0-recip-cur-pcn=""> | ||||||
PHY | ||||||
' pe_phy_recip.t1d0-recip-cur-pcn ' - Add notes        <input type='~"button~"' name='~"selectall~"' value='~"Select' onclick="~"checkAll(~''" pe_phy_recip.t1d0-recip-cur-pcn=""> | ||||||
PHY | ||||||
<input type='~"checkbox~"' class="~"'" pe_phy_recip.t1d0-recip-cur-pcn="" '~"="" name='~"phy~"' value="~"'" '-'="" pe_phy_recip.pe_id_sent=""> ' pe_phy_recip.pe_id_sent ' | ' provider.p1m0-prov-lst-nm ' | ' pe_phy_recip.pe_rx_count ' | ' pe_gt_recip.pe_gt_rx_count ' |
Seq No: ' pe_phy_letters.pe_seq_no ' Description: ' pe_seq.pe_reason ' Alert Date ' pe_phy_letters.pe_alert_date ' Dates: ' pe_phy_letters.pe_begin_date ' - ' pe_phy_letters.pe_end_date ' |
||
PHM | ||||||
<input type='~"checkbox~"' name='~"phm~"' class="~"'" pe_phm_recip.t1d0-recip-cur-pcn="" '~"="" value="~"'" '-'="" pe_phm_recip.pe_id_sent=""> ' pe_phm_recip.pe_id_sent ' | ' pdmpharm.pharm-name ' | ' pe_phm_recip.pe_rx_count ' | ' pe_gt_recip.pe_gt_rx_count ' |
Seq No: ' pe_phm_letters.pe_seq_no ' Description: ' pe_seq.pe_reason ' Alert Date ' pe_phm_letters.pe_alert_date ' Dates: ' pe_phm_letters.pe_begin_date ' - ' pe_phm_letters.pe_end_date ' |
||
<input type='~"button~"' name='~"add~"' value='~"Add~"' onclick="~"form1.action=~'view-pe-letters.html?page=no&method=post2&add=add&memoryid='" tmpid="">     <input type='~"button~"' name='~"delete~"' value='~"Delete~"' onclick="~"form1.action=~'view-pe-letters.html?page=no&method=post2&delete=delete&memoryid='" tmpid=""> |
Results ' w_startResults ' - ' w_endResults '
<input type='~"button~"' value='~"Next' 25="" ('="" w_endresults="" +="" 1="" '="" -="" ')~"="" onclick="~"form1.action=~'view-pe-letters.html?page=yes&method=post~';form1.submit();~"">
' phyCounter ' physician letter(s) and ' phmCounter ' pharmacy letter(s) added.
' phyCounter ' physician letter(s) and ' phmCounter ' pharmacy letter(s) deleted.
<input type='~"hidden~"' name='~"method~"' value='~"post~"'> <input type='~"hidden~"' name='~"seq~"' value="~"'" w_seq=""> <input type='~"hidden~"' name='~"id~"' value="~"'" w_memoryid=""> <input type='~"hidden~"' name='~"startResults~"' value="~"'" w_startresults=""> <input type='~"hidden~"' name='~"page~"' value='~"no~"'> <input type='~"hidden~"' name='~"page~"' value='~"yes~"'> <input type='~"hidden~"' name='~"previd~"' value="~"'" w_previd=""> <input type='~"submit~"' name='~"submit~"' value='~"Back' to=""> </form>Select the sequence number: | <select name='~"seq~"'> </select> |
<input type='~"submit~"' value='~"Submit~"'>
I can't tell whether this is a problem with the forum or with your page, but why are there tilde characters all over the place?
<a href=~"#moreresults~">More Results</a>
But perhaps the bigger issue is the name/id conflict here:
<!-- <div id=~"moreresults~" > <span id=~"moreresults~" ></span> <br> -->
<a name=~"moreresults~" ></a>
Firefox looks at both id and name attributes for navigation within a document. Firefox may be finding the first match (the div in the comment) instead of the third match. Try changing the name(s).
Sorry about the fildes.
The use of "moreresults" in theComments should be ignored, but I think you are in the best position to test whether that is the problem or not. That's the only strange thing I noticed.
Thanks very much for your help. I wish I could find what is going wrong.