Link to other document not working

Discussion in 'Web Design, HTML And CSS' started by gameyharp, Oct 22, 2007.

  1. gameyharp

    gameyharp New Member

    Joined:
    Sep 4, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to make a link from one local document to another.

    <p>
    <a href="C:\Documents and Settings\********\Desktop">
    This text</a> is a link to my other html document.
    </p>

    When i open this with firefox and i click on that link it gives me this message "Firefox doesn't know how to open this address, because the protocol(c) isn't associated with any program"
    Now i went into the properties of for the document that it won't open and i put firefox as the program it should open with. Any help?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    The address should be file :///C:/Documents and Settings/********/Desktop
     
  3. gameyharp

    gameyharp New Member

    Joined:
    Sep 4, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I changed it to that and now it doesn't give me the error anymore but it gives me a page cannot be found page. I checked the filepath but i still get the error. Can you please post the exact code needed to do this, thank you in advance.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Exact code can be posted once I know your file path and html file path.
     
  5. gameyharp

    gameyharp New Member

    Joined:
    Sep 4, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    The filepath for the document is:
    C:/Documents and Settings/*******/Desktop/showingwork2.
    The way i have it in the html document is:
    <p>
    <a href="C:/Documents and Settings/seautio/Desktop">
    This text</a> is a link to my other html document.
    </p>.

    Please help me out.
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I need the file name path.
     
  7. gameyharp

    gameyharp New Member

    Joined:
    Sep 4, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    C:\Documents and Settings\*******\Desktop\showingwork2
    Is the filenames path.
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    It looks like a folder name but anyway here is the stuff.
    HTML:
    <p>
    <a href="file:///C:/Documents and Settings/shabbir/Desktop/filename.jpg">
    This text</a> is a link to my other html document.
    </p>.
    
     
  9. Rexy93

    Rexy93 New Member

    Joined:
    Oct 26, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Designer and completing year 9
    Location:
    Australia
    If you put the two documents
     
  10. Rexy93

    Rexy93 New Member

    Joined:
    Oct 26, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Designer and completing year 9
    Location:
    Australia
    STUPID COMPUTER!!!! KEEPS ADDING POSTS WHEN THERE NOT SPOSE TO!!!!
    Sorry about the anger just it is annoying me.
    Delete above post please.


    If you put the two documents in the same file you can do this.
    Code:
    <a href="Name of document">Text for link</a>
    
    For a example
    Code:
    <a href="Example.html">Click here for more info</a>
    
     
  11. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    The dumb machine
    Now the dumb machine does not understand that as well.

    I would suggest you preview post before submitting.
     
  12. Rexy93

    Rexy93 New Member

    Joined:
    Oct 26, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Designer and completing year 9
    Location:
    Australia
    I do. Is there anyway that you can delete the above post because my dumb machine is adding posts without me doing it all. So is there anyway you can delete them?
     
  13. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    When you have 25 posts you can edit your own posts.
     
  14. gameyharp

    gameyharp New Member

    Joined:
    Sep 4, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Got it working finally, i just slapped all the files on a server and put that filepath in, i couldn't get the local links to work. Thanks for all the help
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice