Site loads source code in Firefox, ok in IE

8 replies
  • WEB DESIGN
  • |
What have I done wrong? If you type in my url or click link to my site in Firefox, the site loads my source code. Seems to work on Internet Explorer.
Recession Proof Your Income

Please help.

Richard
dickie0228
#code #firefox #loads #site #source
  • Profile picture of the author RonRea
    I'll take a look, but one quick tip I found when working with FF. Keep an eye out for double dashes "--" within comment blocks, etc. Even "- -" (with spaces) caused an issue in FF. IE tries to take care of you and keep things from blowing, so -- in comments isn't a problem. In FF, putting --, even within a comment block, caused the rest of the code to puke and show on the screen. Again, I haven't at this yet, but maybe this has something to do with your issue of FF.
    {{ DiscussionBoard.errors[92506].message }}
    • Profile picture of the author wardo
      Looks like your doctype is wrong. It probably becuase you are using html and you are self closing this line:

      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

      Just take the forward slash at the end off.

      If you have any more trouble i would just run the page through validator.w3.org as you quite a few other errors on that page.
      {{ DiscussionBoard.errors[92670].message }}
      • Profile picture of the author Billy Deakin
        That foward slash shouldn't break the page...

        What file extention are you using? The URL is Recession Proof Your Income which would default to index.html or index.htm by default (or .php etc.) but I can't find them?

        It's possible that the browser isn't rendering the page because it thinks it is plain text - make sure that the file extension matches those which your server is set up to serve (if in doubt trl .html first)

        Bill
        {{ DiscussionBoard.errors[92719].message }}
        • Profile picture of the author KarlWarren
          Billy,

          I think you're right... the file itself doesn't seem to have an extension.

          To check this theory add a / after the url - I thought it might have been an index file within a directory, but it doesn't seem to be.

          Dickie, if you add .htm as the extension using your ftp program it should work in all browsers.

          Kindest regards,
          Karl.
          Signature
          eCoverNinja - Sales Page Graphics & Layout Specialist
          {{ DiscussionBoard.errors[93468].message }}
          • Profile picture of the author ncovill
            I just found out something very strange. I use Firebug to debug in FF and such, and what this is showing is there is an <html></head><body> BEFORE your actual code, lol.. very strange. So what it's doing is it's putting ALL of your code inside of your body.

            I would still try to take out the commented out styles first.
            {{ DiscussionBoard.errors[93621].message }}
  • Profile picture of the author ncovill
    <style type="text/css"><!--
    .headline {
    font-family: Tahoma, Verdana;
    font-size: 16pt;
    font-weight: bold;
    }
    --></style>

    the comments you used here in the stylesheet I believe is your problem. Commenting things out in a stylesheet is different than HTML (you use /*font-weight: bold;*/ instead of the standard <!-- comments)
    {{ DiscussionBoard.errors[93602].message }}
  • Profile picture of the author dickie0228
    Thank you to all replies. I will try them and let you know.
    {{ DiscussionBoard.errors[95620].message }}
  • Profile picture of the author dickie0228
    Thanks all! Turns out it was not uploaded in html, so Firefox did not recognize. It has been repaired.
    Check it out: Recession Proof Your Income
    {{ DiscussionBoard.errors[112502].message }}

Trending Topics