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
*******************************************************************

Reply via email to