Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2010
    Location
    Hampshire, England
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Quick Help Needed

    Hi guys, firstly i would just like to say how helpful the people on these forums are, your amazing! secondly, i have refined my code and its looking much tidier now, the only problem im having is my relative link isnt coming up in firefox, im getting the following error message

    Problem loading page
    Firefox can't find the file at /C:/Users/Dan and Ash/Desktop/samshtmlandcss/pokershop/samshtmlandcss/pokershop.html.
    here is the code i am using, its the first link that wont load up, the other link is fine,

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html>
    <head>
    <title> The One Stop Poker Shop </title>
    </head>

    <body>
    <h1> Welcome To The One Stop Poker Shop </h1>
    <p> The One Stop Poker Shop is the largest private poker network.
    We supply top of the range poker accessories for that tournament
    poker experience in your own home. Whether your playing a home
    game vs a mate or two or playing a home game vs a group of individuals
    the best way to impress them is with professional poker accessories and
    we've got it all lined up for you in our poker shop! Click here to check out our amazing range
    of poker goodies from top of the range poker tables to top of the range card shufflers!
    </p>
    <br />
    <a href="samshtmlandcss/pokershop.html"> The Poker Shop </a>
    <br />
    <a href="http://www.pokerstars.com"> The world's Largest Online Poker Network </a>
    </body>
    </html>

    any ideas??

  • #2
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    Your code above is one HTML file. On your local machine, where is "pokershop.html" located relative to your HTML file above? Is it in the same folder? Another folder on the Desktop? Another folder inside the initial folder?

    It's hard to recommend a link without knowing the folder structure on your local machine.

    This link might be of help.

    Remember, if "pokershop.html" is in the same folder as the referencing HTML file, you don't need to specify a filepath:

    Code:
    <a href="pokershop.html">The Poker Shop</a>
    If it's one folder "down," use:

    Code:
    <a href="../pokershop.html">The Poker Shop</a>
    And if it's one folder "over," use something like:

    Code:
    <a href="../samshtmlandcss/pokershop.html">The Poker Shop</a>
    Hope that helps.
    matt | design | blog

  • Users who have thanked BoldUlysses for this post:

    webnewb (07-01-2010)

  • #3
    New Coder
    Join Date
    Jun 2010
    Location
    Hampshire, England
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    thanks mate

    thanks alot mate that really helped,

  • #4
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    821
    Thanks
    10
    Thanked 78 Times in 76 Posts
    Firefox likes the local links somewhat like this:

    Code:
    file:///C:/Users/Dan and Ash/Desktop/samshtmlandcss/pokershop/samshtmlandcss/pokershop.html
    IE, I think, likes the slashed the other way and without "file:///".
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

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