Firefox Browiser

Posted on 2005-03-24
Medium Priority
Last Modified: 2012-05-05
Hello All I am stumped when you go here www.skowhegan.org using Firefox browiser comes up with text any help would be great. works finr in IE

Question by:srawtvl
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 27

Accepted Solution

Diablo84 earned 672 total points
ID: 13624958
Firefox is detecting the content type as text/plain rather then text/html.

IE seems to render the HTML regardless where as Firefox displays it as is the contents type - plain text.

Do you have any server side code in that file which is setting the content type in the http headers, eg. this effect can be recreated in php by adding the header - header("content-type: text/plain");
LVL 18

Assisted Solution

bruno earned 664 total points
ID: 13625709
agreed, your response header is set to text/plain - here are the full headers according to firefox:

Response Headers - http://www.skowhegan.org/skowhegan/index.shtml

Date: Thu, 24 Mar 2005 21:07:15 GMT
Server: Apache/2.0.44 (Unix) PHP/4.3.3
Last-Modified: Thu, 24 Mar 2005 18:41:24 GMT
Etag: "788011-1a9e-6cb71d00"
Accept-Ranges: bytes
Content-Length: 6814
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain; charset=ISO-8859-1

200 OK

Expert Comment

ID: 13627001
abit weird why your headers are screwed up.  Maybe removing the 'text' out of the meta tag might help.  If not then you need some admin done your server to fix it, if you cant then all your pages will have to start like this..

   header("content-type: text/html");
   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
   <title>Town of Skowhegan - A Place to Watch!</title>
   <link rel="stylesheet" href="http://www.skowhegan.org/skowhegan/style.css">

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 13628415
I simulated your code on my host, with all possible extensions, and all works fine - even in FireFox

It's really weird, especcially because at my host everything works fine, but when opening your site, i get same result -> plain code

Some options i would try out:
- add type="text/css"to your link tag for your css file. It seems FireFox is real strict with this kind of info.
- add a DOCTYPE tag, transistional, loose.dtd
- try your page with .html instead of .shtml
- update FireFox

Most important: does your host accept .shtml files to parse as html? Maybe IE shows this code as html formatted content anyway, where firfox show it as code if not been given a sign from your host it's html. But for that i'm not sure, but it would be worth a shot
LVL 23

Assisted Solution

sciwriter earned 664 total points
ID: 13713535
simply copy and paste this code into the page before anything else, overwriting the data in these tags --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<title>Town of Skowhegan - A Place to Watch!</title>

That works for Mozilla
LVL 18

Expert Comment

ID: 14773630
original question was answered by diablo...

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question