www.webdeveloper.com
Results 1 to 5 of 5

Thread: HTML links not working in firefox.

  1. #1
    Join Date
    Oct 2013
    Posts
    26

    Unhappy HTML links not working in firefox.

    Hello everyone, this is my first post here and i would just like to say hello to everyone.
    i have just launched my site using godaddy here is the link.... http://www.limegreenlizzard.com/
    now my problem is the site is very basic and does not have that much functionality but still i have issues with firefox. I use microsoft webmatrix and the site runs great on all browsers when testing from my localhost but now that i have the site live on Godaddy servers Firefox wont access some of the content because it is in folders or there is a "/" at the beginning of my src attribute because IE and Chrome both require it to work. when that "/" is removed Firefox works great.

    now for my question.... is there a way to link it to one source for IE and Chrome and another for Firefox??

  2. #2
    Join Date
    Oct 2013
    Posts
    597
    Code:
    <img src="\Pics\9and10news.gif" alt="9and10news" id="9and10" class="sponsors"/>
    Should be :
    Code:
    <img src="/Pics/9and10news.gif" alt="9and10news" id="9and10" class="sponsors"/>
    Just one example of slashes going the wrong way.
    Last edited by Kevin2; 01-31-2014 at 03:59 PM.

  3. #3
    Join Date
    Oct 2013
    Posts
    26

    Thank you!!!

    Quote Originally Posted by Kevin2 View Post
    Code:
    <img src="\Pics\9and10news.gif" alt="9and10news" id="9and10" class="sponsors"/>
    Should be :
    Code:
    <img src="/Pics/9and10news.gif" alt="9and10news" id="9and10" class="sponsors"/>
    Just one example of slashes going the wrong way.
    I just cannot believe that one slipped me by.... damn you w3schools they get EVERYTHING wrong

  4. #4
    Join Date
    Oct 2013
    Posts
    597
    Well ... maybe not everything. One must remember that they run on Windows/.asp which doesn't care about slash direction or capitalization. \Pics\9and10news.gif is the same as \PICS\9AND10NEWS.GIF is the same as /pics/9and10news.gif to them.

    However, on a *nix/Apache system that's not the case. All of those are different files and filepaths. Best practice is to use all lower-case folder/directory and file names. Also make abso-dam-lutely sure you are using / instead of \ in your file paths. Larnt both the hard way years ago. I even use lower-case names for files that will only be used on Windows systems just to be sure.

  5. #5
    Join Date
    Jan 2014
    Location
    Calgary, Canada
    Posts
    29
    HTML linkss works everywhere..... kevin is right there is slashes issue

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles