Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Firefox Problem

  1. #1
    Join Date
    Oct 2007
    Posts
    47
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Firefox Problem

    Hello

    Firefox is giving me some grief in that a website that shows fine in IE shows only as HTML in FF.

    I've changed hosts still the same outcome. I've checked my code. Still the same. I've even got rid of all my code and stuck in a fresh new page consisting of just the most basic few lines of HTML but still the same.

    What causes this?

    THanks
    H

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Everything eventually gets translated / into html to be rendered on the screen, so can you please be more specific about what isn't displaying that should be displaying.

    I am going to make an assumption and say that you are having difficulties with javascript?? possibly? and my answer to that is you have errors on your code that are actually being errored in Fx where IE doesn't error what it should.

    Post the url to the problematic code so we can better help you troubleshoot your problems

  3. #3
    Join Date
    Oct 2007
    Posts
    47
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Hello Boogeyman - thanks for the response

    No it's not javascript related in anyway.

    I've got a page that reads nothing more than this:

    <html>
    <head>
    <title>Title of page</title>
    </head>
    <body>
    This is my first homepage. <b>This text is bold</b>
    </body>
    </html>

    There is nothing else. It's not got any JS, PHP or CSS. And that's exactly how it shows in FF whereas in IE it's displays correctly.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I think that you mean it shows as HTML in IE and as the raw source code in FF. And I am assuming the page displays OK in FF when run locally, right?

    If so, try a valid page, like this (call it test.htm or something with the .htm or .html extension):

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Title of page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    </head>
    <body>
    <div>
    This is my first homepage. <b>This text is bold</b>
    </div>
    </body>
    </html>
    If that still doesn't work in FF, then the server needs to be reconfigured.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    so it is rendering the code, and not parsing / processing the html code?

    the only reason any page should be parsing computer code is if you escape the less than and/or greater than signs, or if you use the depreciated <pre> tag.

    if that is all you have in your file, then you have something corrupt with your version of Fx.

  6. #6
    Join Date
    Oct 2007
    Posts
    47
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Rawcode in FF and HTML in IE - yep, that's what I meant sorry for the confusion.

  7. #7
    Join Date
    Oct 2007
    Posts
    47
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I'm chasing this up with my new host who've advised that the nameservers hadn't been transferred from my old host (who didn't want to help with this problem whatsoever) to my new host. Is this likely to be the cause of the problem?

    It wouldn't explain why it didn't work with the original hosts but I don't care if I get the right result...

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It could, the basic problem is that the server is serving the code as plain text. If it doesn't, the meta content tag (from my example) should take care of that, but if not, the host should be configured to send the page properly.

    You are using a .htm or .html extension on the page, right?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there boogyman,
    or if you use the deprecated <pre> tag.
    I think that you may be confusing the pre element with the xmp element.
    The following elements are obsolete: LISTING, PLAINTEXT, and XMP. For all of them, authors should use the PRE element instead.
    Source:-
    coothead

  10. #10
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    depreciated and obsolete are two different things. Also note we are in HTML 4.1, and your link points to 4.0. Strict coding makes pre tag worthless, and the depreciated "transitional" DOCTYPE will still use it. YAY Quirks mode!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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