Forum OpenACS Development: Re: html table to excel
4: Re: html table to excel (response to 1)
Posted by Mark Aufflick on 11/21/03 04:54 AM
You can actually force IE (and some other browsers) to download instead of viewing inline for known file types.
You need to add a header like:
Content-disposition: attachment; filename=fname.ext
As per RFC 2183 http://www.nic.mil/ftp/rfc/rfc2183.txt
Famously, support for this is broken in IE 4.01, but like that matters these days (in 4.01 it's not honoured, but then you haven't lost anything).
5: Re: html table to excel (response to 4)
Posted by Mark Aufflick on 11/21/03 04:57 AM
hmm, the nic.mil site appears to be broken - see the rfc on netsys.com: http://www.netsys.com/rfc/rfc2183.txt