Website Problem in NS 7.2

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Website Problem in NS 7.2

Postby goGecko » Sun 19 Sep, 2004 5:49 pm

When accessing the website:
https://netfiles.uiuc.edu/ro/www/Newman ... index.html
The raw HTML code for the website appears. According to the W3C Validator located at:
validator.w3.org
The page is incorrectly identified as text/plain instead of text/HTML. I have contacted this site's webmaster and I am including a link to this thread in sillydog so that they can ask questions about how to make their site Netscape compliant. Any suggestions for validating their code would be appreciated. Feel free to send your comments to the webmaster at:
jjdrake@uiuc.edu

Thanks!

[Edit by profman: Used BBCode to shorten the 2nd URL.]
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
goGecko
super member
super member
 
Posts: 125
Joined: Thu 15 Jul, 2004 6:10 pm

Postby Edward » Sun 19 Sep, 2004 8:34 pm

The raw HTML code also appears in Mozilla 1.7.3, it's not a web browser problem. You were correct in notifying the webmaster there of the problem.
UserAgent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.3) Gecko/20040913
SillyDog701 Moderator
debian 6 - iceape - iceweasel - icedove - seamonkey
User avatar
Edward
Moderator
Moderator
 
Posts: 3584
Joined: Sun 01 Dec, 2002 7:15 pm

Webmaster

Postby vertonium » Tue 21 Sep, 2004 1:50 pm

Hi...

I'm the webmaster of that site, and I tried adding metadoctype=html in the <head> , but I guess that doesn't work.

When I preview the site with Netscape 7.2 on my computer, everything is in order, but when I view the uploaded version...I see code.

Help???

Thanks!
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
vertonium
new member
new member
 
Posts: 1
Joined: Tue 21 Sep, 2004 1:47 pm

Postby DJGM » Tue 21 Sep, 2004 2:26 pm

This appears to be a problem with a incorrectly configured webserver, rather than a problem with the browser.

As far I can tell, it's the server upon which the website is hosted, that may be incorrectly set to send HTML
files as text/plain instead of text/html. Try getting the server reconfigured to serve webpages as text/html.

Since Internet Explorer effectively ignores the key part of the HTTP standard that deals with this, then IE
will more than likely display the page as a webpage and not raw code, no matter how the server is set up.

HTTP is the protocol for the World Wide Web. It provides requirements that all Web browsers must
meet; if browsers developed their own protocol instead, communication between computers would
break down and the Internet would collapse into anarchy. (HTTP = Hypertext Transfer Protocol)

Internet Explorer does not obey this important internet protocol!

When a server sends a file to you through HTTP, it identifies the file as a webpage, text file,
picture file, movie, or other type of file. HTTP uses the Content-Type header to do this.

The protocol for HTTP/1.1 states:

"If and only if the media type is not given by a Content-Type field, the recipient
may attempt to guess the media type via inspection of its content and/or
the name extension(s) of the URI used to identify the resource."


Internet Explorer does not follow these rules; it guesses the media type of every file it receives.
Even if I send it a file with "Content-Type: image/jpeg", if Internet Explorer thinks it's a text file,
it will open it like a text file! If in the future IE starts identifying its Content-Types incorrectly,
this will cause a huge dilemma with webmasters. Because it does not follow this clear
protocol, Internet Explorer cannot be technically identified as a "web browser".

UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707
SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!
User avatar
DJGM
diamond member
diamond member
 
Posts: 4572
Joined: Wed 19 Jun, 2002 1:03 pm
Location: Manchester, England, UK

Postby Fulvio » Tue 21 Sep, 2004 6:13 pm

It seems to have been fixed.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
A minority may be right, and a majority is always wrong
~ Henrik Ibsen
WinXP, SP3, 512 MB, SM2.9.1, FF12, TB12.0.1, IE8.0, Google Chrome18, Ghostwall , Avast 7.x, JRE1.7_04. Testing FF13b4
User avatar
Fulvio
Moderator
Moderator
 
Posts: 11916
Joined: Wed 19 Jun, 2002 10:08 am

Verified

Postby goGecko » Tue 21 Sep, 2004 10:31 pm

Confirmed. On my computer, the problem is also fixed. Thanks to the webmaster for fixing the problem! :)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
goGecko
super member
super member
 
Posts: 125
Joined: Thu 15 Jul, 2004 6:10 pm


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], Yahoo [Bot]