[thelist] telling IE not to open text files

Joshua Olson joshua at waetech.com
Thu Sep 16 19:34:26 CDT 2004


> -----Original Message-----
> From: Joel D Canfield
> Sent: Thursday, September 16, 2004 7:30 PM
>
> On our intranet we frequently link to live documents using the 'file'
> protocol, assuming the doc will open in its native application. Text
> files don't, they open in IE. I should know how to stop that, but I'm
> coming down with a cold and can't think clearly.
>
> How do I tell IE to launch the default *.txt application?

Joel,

Add the content-disposition header.  Set it's value to "attachment;
filename=whatever.txt"
Then, set the content-type to application/unknown so that IE will have to
guess which app to use.

That should do the trick.

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168




More information about the thelist mailing list