Re: [WSG] IE ignores MIME type
Hi, SSI header working on IE8 on Win7, sorry no time to check out other IEs cheers Luke On 12/04/2010 3:53 PM, David Hucklesby wrote: A student at a Web design course asked me how to include a common heading on all his pages without copy and pasting into each. I walked him through the process of making a Server-Side Include. http://webwiz.robinshosting.com/jaime/ This is a demo I made for him. The view source is named with a .txt suffix, and sent as Content Type text/plain. But Internet Explorer, alone among my browsers, insists on displaying the two files containing HTML as if they were text/html. Oddly, IE 7 will display the included file as intended on page refresh. All other IE versions stubbornly refuse. Any ideas how to get IE to play nice, please? Thank you for your time. Cordially, David *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] IE ignores MIME type
On 4/11/10 11:52 PM, Luke Hoggett wrote: Hi, SSI header working on IE8 on Win7, sorry no time to check out other IEs cheers Luke On 12/04/2010 3:53 PM, David Hucklesby wrote: A student at a Web design course asked me how to include a common heading on all his pages without copy and pasting into each. I walked him through the process of making a Server-Side Include. http://webwiz.robinshosting.com/jaime/ This is a demo I made for him. The view source is named with a .txt suffix, and sent as Content Type text/plain. But Internet Explorer, alone among my browsers, insists on displaying the two files containing HTML as if they were text/html. [...] Interesting. I'm using Windows XP. Even more worrisome that the OS could make a difference... Thanks for the feedback, Luke. I love standards - there are so many to choose from. Cordially, David -- *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] IE ignores MIME type
On Sun, 11 Apr 2010, David Hucklesby wrote: A student at a Web design course asked me how to include a common heading on all his pages without copy and pasting into each. I walked him through the process of making a Server-Side Include. http://webwiz.robinshosting.com/jaime/ This is a demo I made for him. The view source is named with a .txt suffix, and sent as Content Type text/plain. But Internet Explorer, alone among my browsers, insists on displaying the two files containing HTML as if they were text/html. Oddly, IE 7 will display the included file as intended on page refresh. All other IE versions stubbornly refuse. Any ideas how to get IE to play nice, please? Rename the file index.txt instead of index.html.txt Firefox used to do the same thing, IIRC. -- Chris F.A. Johnson, http://cfajohnson.com Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] IE ignores MIME type
On 4/12/10 11:41 AM, Chris F.A. Johnson wrote: On Sun, 11 Apr 2010, David Hucklesby wrote: A student at a Web design course asked me how to include a common heading on all his pages without copy and pasting into each. I walked him through the process of making a Server-Side Include. http://webwiz.robinshosting.com/jaime/ This is a demo I made for him. The view source is named with a .txt suffix, and sent as Content Type text/plain. But Internet Explorer, alone among my browsers, insists on displaying the two files containing HTML as if they were text/html. Oddly, IE 7 will display the included file as intended on page refresh. All other IE versions stubbornly refuse. Any ideas how to get IE to play nice, please? Rename the file index.txt instead of index.html.txt Done. Same results. Any other ideas? Cordially, David -- *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] IE ignores MIME type
David, A quick check located this in your new index.txt file... [code] div id=sidebar h2View Source/h2 ul lia href=index.html.txtThis page/a/li lia href=header_shtml.txtIncluded file/a/li lia href=htaccess.txt.htaccess/a/li /ul /div!-- #sidebar -- [/code]You may want to change that url as well as adding a correct doctype declaration to the pages, even for a demo version...Cheers,Doug Burt- Original Message - From: David Hucklesby huckle...@gmail.com To: wsg@webstandardsgroup.org Sent: Monday, April 12, 2010 3:20 PM Subject: Re: [WSG] IE ignores MIME type *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] Out of Office AutoReply: WSG Digest
Er ikke tilstede, da jeg detlager i EGINS årlige konference.Er tilbage den 19. april/I am attending the EGIN anual conference, but i am back on April the 19th Med venlig hilsen/best wishes Peter Larsen Center for Medie og Kommunikation Roskilde Tekniske Skole *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] IE ignores MIME type
On 12 Apr 2010, at 06:53:46, David Hucklesby wrote: This is a demo I made for him. The view source is named with a .txt suffix, and sent as Content Type text/plain. But Internet Explorer, alone among my browsers, insists on displaying the two files containing HTML as if they were text/html. This MSDN article http://msdn.microsoft.com/en-us/library/ms775147(VS.85).aspx explains how Microsoft, in their infinite wisdom, chose to break the web because they know so much better than those who wrote the RFCs. Basically, they chose to assume that text/plain was probably wrong in most cases (which might have been a real problem around 1997, but not one they should have taken it upon themselves to fix in this way), and instead examine the content to see if it might be something else. As in this case it looks like HTML, IE ignores the server and treats it as HTML. This post on the IE blog http://blogs.msdn.com/ie/archive/2005/02/01/364581.aspx explains that, when they tried to fix things in XP SP2, they found that the damage they had caused was so widespread that they had to abandon the fix (despite the fact that this content sniffing can be a serious security issue). They offer no useful solution. This article on the subject from Google http://code.google.com/p/doctype/wiki/ArticleContentSniffing has little to suggest either. Sorry I can't help, but with that information perhaps somebody can come up with a workaround. Regards, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***