Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works ok on IE but just displays code on Firefox

Status
Not open for further replies.

officerdibble

IS-IT--Management
Mar 21, 2009
17
0
0
GB
The following code works fine on IE7 but on Firefox it just shows up as a list of code.

I have searched Google, the Net and the entire world looking for a solution that makes sense, so here I am again please help.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "


<html xmlns=" xml:lang="en" lang="en" dir="ltr">

<head>

<title>The Gunns Blog</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta name="generator" content="Blogger" />
<link rel="icon" type="image/vnd.microsoft.icon" href="<link rel="alternate" type="application/atom+xml" title="The Gunns Blog - Atom" href=" />
<link rel="alternate" type="application/rss+xml" title="The Gunns Blog - RSS" href=" />
<link rel="service.post" type="application/atom+xml" title="The Gunns Blog - Atom" href=" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href=" />
<link rel="stylesheet" type="text/css" href=" <link rel="stylesheet" type="text/css" href="
<style type="text/css">
/*
-----------------------------------------------
Blogger Template Style
Name: Dots Dark
Designer: Douglas Bowman
URL: Date: 27 Feb 2004
----------------------------------------------- */


body {
background:#123 url(" 50% 0;
margin:0;
padding:0 10px;
text-align:center;
font:x-small Verdana,Arial,Sans-serif;
color:#abc;
font-size/* */:/**/small;
font-size: /**/small;
}



Regards
Officerdibble
 
Hi

This is probably a server configuration or server-side scripting issue.

Check the HTTP response headers, especially the [tt]Content-Type[/tt]. Use a tool for that :
[ul]
[li]Browser:
[ul]
[li]FireFox:
[ul]
[li]Live HTTP Headers[/li]
[li]FireBug[/li]
[li]Web Developer[/li]
[/ul]
[/li]
[li]Lynx[/li]
[li]Links[/li]
[li]W3M[/li]
[li]Explorer:
[ul]
[li]ieHTTPHeaders[/li]
[li]IEWatch[/li]
[/ul]
[/li]
[/ul]
[/li]
[li]tool:
[ul]
[li][tt]netcat[/tt][/li]
[li]PuTTY[/li]
[li][tt]telnet[/tt][/li]
[li][tt]Wget[/tt][/li]
[li][tt]cURL[/tt][/li]
[/ul]
[/li]
[/ul]

Feherke.
 
Hi

I think it is . That page is delivered as [tt]text/javascript[/tt].

So standard compliant browsers like Mozillas ( FireFox, SeaMonkey ), Opera, Konqueror, Midori will display it as JavaScript source. Only Internet "I know it better then you" Explorer will ignore what the server told it and will do its guess.


Feherke.
 
Sorted.

Google, when they publish the blog site to your website they call the main file whatever you name your blog. There is no .extension to that file.

By simply appending .html to the end of the file name sorted the issue out.

Thanks for your assistance guys, you pointed me in the right direction.
 
I don't see a closing </head> tag. Maybe just a typo when posting your code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top