Questions

Hyperlinks

Tags:
+
0 Votes
Locked

Hyperlinks

rtp2006
I am creating a website and my hyperlinks to documents will not open. I have tried both PDF and word documents to be sure. When I hyperlink to an email address or to another part of the website the hyperlink works fine.

Any suggestions?
  • +
    0 Votes
    nepenthe0

    Right click the document hyperlink, then click copy shortcut. Clear the browser address bar, and paste (Ctrl-V) the copied URL into your browser address bar.

    That should do it.

    Rick/Portland, OR

    +
    0 Votes
    rtp2006

    your suggestion works but when end users start using the site I'd rather the document just open right up instead of those extra steps? thanks for the help though

    +
    0 Votes

    By the way when you put in hyperlinks in a document make sure to give it space on each side of the other text, when you paste it down press your "enter" key to give it space on the end of it. Like this:
    http://www.google.com/search?hl=en&q=Vista%20-%20CA%20signature%20updates%207.0


    Please post back if you have any more problems or questions.

    +
    0 Votes
    nepenthe0

    Most of us stumble upon the solution I described, and the only explanation I can give you is a security feature within Windows Firewall. The Firewall will allow a response that originates from your browser.

    But in this case, the browser isn't open - you are attempting to connect where you have not originated the request through the browser.

    The alternative (disabling Windows Firewall) is obviously out of the question. It is possible that 3rd party Firewall software provides a workaround.

    In the meantime, you should probably paste a text message to document recipients advising them to copy and paste the document URL into their browser windows.

    Rick/Portland, OR

    +
    0 Votes

    Wow

    rtp2006

    Just for kicks I turned off my firewall and AV just to see ... still doesn't want to work. This is perplexing because almost every website has document hyperlinks and they just open right up. I wonder why mine aren't working?

    +
    0 Votes
    nepenthe0

    Only please, don't try that experiment again. It takes only seconds for thousands of malware packets to find your PC.

    For a free PC security report, check out:

    https://www.grc.com/x/ne.dll?bh0bkyd2

    You will find the results very illuminating, possibly even disturbing.

    'Tis better to put up with minor annoyances than risk having to reformat your hard drive and reload everything. Perhaps some more knowledgeable TR consultant will post the ultimate solution.

    Rick/Portland, OR

    +
    0 Votes
    ahin4114

    It would be useful if you could post an example of the html so that we could see how it's formed.

    Is the page online so that others could have a look and test it...?
    When you hover over the link in your browser, does the url show as you would expect in the browser status bar?
    Have you got any javascript running on the anchor tag, perhaps it's stopping the link firing...

    Really an example of your code would get you the best responses.

    +
    0 Votes
    phil

    When you click on the link does nothing happen or do you get a "document not found" error page?

    If your server is Unix (or derivative) then you need to remember that the document path is likely to be case sensitive.

    Also, if you have spaces in the document names, it may pay to change the spaces to hyphens or, if this is not desirable, insert %20 into the URL instead, eg [my document name.doc] becomes [my%20document%20name.doc]

    +
    0 Votes
    apotheon

    phil@:

    Good answer.


    rtp2006:

    I think phil is probably on the right track -- but, if what he says doesn't solve the problem, we need to actually see the code before we can provide much help, I think. If the site is online, please direct us to it so we can view the markup source and see what the links do when they fail to work properly for ourselves. Some of us do web development professionally, so we should be able to help quite a bit, but it's difficult to diagnose a problem like this based on what you're saying.

    +
    0 Votes
    emerem2tor

    I would suggest you to check the access permissions for those documents on the server which hosts the files. Check the folders permissions as well, because the final file permission is a combination of the folder and file permission.

    Perhaps you don't have permissions for the anonymous user. When you access the file, it works because is ?you?, but when somebody else tries from outside he might not have the right access to the files, or the path is restrictive?

  • +
    0 Votes
    nepenthe0

    Right click the document hyperlink, then click copy shortcut. Clear the browser address bar, and paste (Ctrl-V) the copied URL into your browser address bar.

    That should do it.

    Rick/Portland, OR

    +
    0 Votes
    rtp2006

    your suggestion works but when end users start using the site I'd rather the document just open right up instead of those extra steps? thanks for the help though

    +
    0 Votes

    By the way when you put in hyperlinks in a document make sure to give it space on each side of the other text, when you paste it down press your "enter" key to give it space on the end of it. Like this:
    http://www.google.com/search?hl=en&q=Vista%20-%20CA%20signature%20updates%207.0


    Please post back if you have any more problems or questions.

    +
    0 Votes
    nepenthe0

    Most of us stumble upon the solution I described, and the only explanation I can give you is a security feature within Windows Firewall. The Firewall will allow a response that originates from your browser.

    But in this case, the browser isn't open - you are attempting to connect where you have not originated the request through the browser.

    The alternative (disabling Windows Firewall) is obviously out of the question. It is possible that 3rd party Firewall software provides a workaround.

    In the meantime, you should probably paste a text message to document recipients advising them to copy and paste the document URL into their browser windows.

    Rick/Portland, OR

    +
    0 Votes

    Wow

    rtp2006

    Just for kicks I turned off my firewall and AV just to see ... still doesn't want to work. This is perplexing because almost every website has document hyperlinks and they just open right up. I wonder why mine aren't working?

    +
    0 Votes
    nepenthe0

    Only please, don't try that experiment again. It takes only seconds for thousands of malware packets to find your PC.

    For a free PC security report, check out:

    https://www.grc.com/x/ne.dll?bh0bkyd2

    You will find the results very illuminating, possibly even disturbing.

    'Tis better to put up with minor annoyances than risk having to reformat your hard drive and reload everything. Perhaps some more knowledgeable TR consultant will post the ultimate solution.

    Rick/Portland, OR

    +
    0 Votes
    ahin4114

    It would be useful if you could post an example of the html so that we could see how it's formed.

    Is the page online so that others could have a look and test it...?
    When you hover over the link in your browser, does the url show as you would expect in the browser status bar?
    Have you got any javascript running on the anchor tag, perhaps it's stopping the link firing...

    Really an example of your code would get you the best responses.

    +
    0 Votes
    phil

    When you click on the link does nothing happen or do you get a "document not found" error page?

    If your server is Unix (or derivative) then you need to remember that the document path is likely to be case sensitive.

    Also, if you have spaces in the document names, it may pay to change the spaces to hyphens or, if this is not desirable, insert %20 into the URL instead, eg [my document name.doc] becomes [my%20document%20name.doc]

    +
    0 Votes
    apotheon

    phil@:

    Good answer.


    rtp2006:

    I think phil is probably on the right track -- but, if what he says doesn't solve the problem, we need to actually see the code before we can provide much help, I think. If the site is online, please direct us to it so we can view the markup source and see what the links do when they fail to work properly for ourselves. Some of us do web development professionally, so we should be able to help quite a bit, but it's difficult to diagnose a problem like this based on what you're saying.

    +
    0 Votes
    emerem2tor

    I would suggest you to check the access permissions for those documents on the server which hosts the files. Check the folders permissions as well, because the final file permission is a combination of the folder and file permission.

    Perhaps you don't have permissions for the anonymous user. When you access the file, it works because is ?you?, but when somebody else tries from outside he might not have the right access to the files, or the path is restrictive?