Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

browser independent links

Status
Not open for further replies.

dswitzer

Technical User
Aug 2, 2002
298
US
I have a few pdf's in my website. Both the web files and the pdf's reside on the same server (different directories).

Our original development was for IE exclusively and the code for posting the hyperlinks is simple (running through a subroutine to determine whether it should be highlighted or not):
Code:
Sub linkPrint(pageNameValue,linkName,link)
  If pageName = pageNameValue Then
    Response.Write "<tr><td width='100%' class=menuSelect>" & linkName & "</td></tr>"
  Else
    Response.Write "<tr><td width='100%' class=menuChoice><a href='" & link & ".asp?mgrID=" & mgrID & "'>" & linkName & "</a></td></tr>"
  End If
End Sub


This works fine for IE -- when I hover over the link, I see the path:
When I click the link and it goes to the pdf, the address bar reads the same...

However, when I hit it from Firefox, it fails. When I view source in firefox, the href is writing out the proper link (same as above in IE). When I hover over the link, the statusbar shows something different:

And, of course, when I hit the link in firefox, the page cannot be found and the addressbar reads:

Any ideas for a solution/workaround?

Thanks.
 
Show the actual HTML that the ASP produces where that link is on the page. I'd guess that the ASP script that creates this has an error in the link variable value, and IE is correcting things while Firefox is working according to web standards.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top