Forum Moderators: open

Message Too Old, No Replies

Mozilla Browsers showing page source code

         

gooflox

8:40 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



A server I've been asked to develop on shows the source code for the page in Netscape and Firefox (works fine in IE). Anyone have any ideas as to why? or how to fix?

See:
<Sorry, no example URLs.
See Terms of Service [webmasterworld.com]>

[edited by: tedster at 9:00 pm (utc) on Mar. 11, 2005]

[edited by: gooflox at 9:08 pm (utc) on Mar. 11, 2005]

bcolflesh

8:59 pm on Mar 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Weird - the useragent javascript has an error you should fix, but I don't see why it wouldn't be blank in Gecko-based browsers - check your httpd config.

gooflox

9:01 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



Yeah -- I know the code has some issues. ( not my code). Anything specific I should look for in the httpd config?

tedster

9:03 pm on Mar 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It could be something as simple as serving a wrong content-type in the HTTP server headers. For web pages it should be text/html and not text/plain

[edited by: tedster at 9:05 pm (utc) on Mar. 11, 2005]

bcolflesh

9:05 pm on Mar 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check:

DefaultType (text/plain?)

AddType
AddHandler - see if these are set to server parse html files - comment them out and see what happens.

<edit>
Tedster beat me to it -
</edit>

Shadowkiller

9:14 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



Strange. I copied and pasted your code and opened it up in Firefox locally, and it didn't show the code. Not sure what the problem is, all I know is that is has to be in the <csscriptdict>, or maybe not. Probably just pointing out the obvious there though. I'm interested in what the problem turns out being.

gooflox

9:25 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



It must be something on the server. The same code on a different server works fine accross the board. I'll post if I figure it out.

Thanks and if anyone has any other ideas, let me know.

jimh009

3:33 am on Mar 26, 2005 (gmt 0)

10+ Year Member



Hi,

I'm having the same problem and was hoping someone might be able to figure it out. It's a server side include site and the host had a few problems setting things up so that it displayed properly (pages end in a .shtm instead of a .shtml).

Site displays fine now in IE but I get the source code in Firefox. And I have absolutely no clue why. :(

I'll PM anyone the site that might want to take a look at it. It's just a simple site I whipped together for free for some friends, so don't expect a fancy site. :)

Thanks.

Jim

tedster

4:01 am on Mar 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



gooflox, have you checked the HTTP headers? You can use the Server Header Checker [searchengineworld.com] utility on our sister site, SearchEngineWorld.

As I said above, you are looking for Content-Type. It should be text/html and not text/plain.