[Zope] Generating text/csv from DTML method, Mime Type?
Brad Clements
bkc@murkworks.com
Fri, 10 Nov 2000 10:47:02 -0500
I'm create a CSV file that I would like browsers to get the "save as"
dialog when they select it.
I'm using RESPONSE.write() to write out the CSV file, and I set the
Content-Type before calling RESPONSE.write
Netscape seems to work ok, it pops up a save box for "text/csv" and
"application/vnd.ms-excel".
However in both cases IE5.5 just ignores the data and re-requests the
page.
Does anyone know *all* the steps I need to take to get this to work
correctly with IE? I must be doing something wrong. I want to supply a
CSV file, but generated dynamically. I'm sure I'm missing a header
setting or something.
Brad Clements, bkc@murkworks.com (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com AOL-IM: BKClements