Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1

    Default Hyperlink doesn't open file from subfolders

    Need a little help guys.
    The task is to make a link that points to sub folder within my root website folder.
    Example: Root/subfolder/myfile.pdf
    I have tried this many different ways such as
    subfolder\myfile.pdf
    subfolder/myfile.pdf

    I have also tried checking and un checking the box that reads
    "Correct Address Automatically"
    But I still am un able to open this file.

    When testing my site I can hover over the link and the footer gives the long path name.
    Example: c://username/website/subfolder/myfile.pdf

    Within the code from View source from Internet Explore I do not get the full path name. I just get the path I typed in.

    Anyone have any suggestions?

    Thanks
    Bill

  2. #2

    Default Re: Hyperlink doesn't open file from subfolders

    subfolder/myfile.pdf is correct.

    But you will not see this working from a preview or locally in IE if you have Adobe Reader as your PDF handler due to local zone security restrictions.
    Once you upload to your host everything it will be fine.

    (NOTE: This local viewing restriction for inline PDF's is not an issue when using alternative PDF readers installed on your PC, FOXIT for example)

  3. #3

    Default Re: Hyperlink doesn't open file from subfolders

    The link to the pdf file was just an example.
    The real problem is linking to another .htm file with in a subfolder.
    Also I plan on making this a Intranet site for our company.

    Why is it I can open other .htm file from the root but not from a subfolder?


    Thanks

    Bill

  4. #4
    Join Date
    Jan 2006
    Location
    Los Angeles
    Posts
    945

    Default Re: Hyperlink doesn't open file from subfolders

    I reference folders as ../subfolder/file. The ../ means start at the root folder.
    Grace
    http://gracehjs.com/
    Xara Software XDP11

  5. #5
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default Re: Hyperlink doesn't open file from subfolders

    I don't think that's quite correct Grace, I believe ../ means one folder up (which may not necessarily be the root directory), so you might have ../../../images/pic1.jpg which would refer to a directory 3 folders up.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #6

    Default Re: Hyperlink doesn't open file from subfolders

    Yes this is correct Egg , the two dots .. instruct the server to move up one directory (Relative Paths)

  7. #7
    Join Date
    Nov 2009
    Posts
    1

    Default Re: Hyperlink doesn't open file from subfolders

    Who came up with the hyperlink underlining convention? That almost every hyperlink has to be underlined, and almost every underlined word is a hyperlink. Where did this originate?

  8. #8

    Default Re: Hyperlink doesn't open file from subfolders

    Please stay on topic.

  9. #9
    Join Date
    Oct 2005
    Location
    Prague, Czech Republic
    Posts
    231

    Default Re: Hyperlink doesn't open file from subfolders

    Can you upload some files showing this problem? It's difficult to guess whats wrong.
    (./)subfolder/myfile.pdf is correct way to refer to file in subfolder

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •