registering
11-07-2003, 11:05 AM
Hi all,
I would like the user to click on somethiing and have a "save as" dialogue pop-up to save a server-side file on the client machine. From what I've read the ONLY way to do this is via IE's supported document.execCommand('Save As'). Even using Java, you must rely on the HTTP headers (content-type, content-disposition, etc.) and HOPE the browser conforms to the spec. However I found IE6 notices my file is a normal text file and just displays it anyway, even though I'm telling it application/octet-stream, etc..
Are my observations correct? Does anyone know how to force a "Save As" option rather than displaying a file's contents reliably across all browsers??
Thanks!
I would like the user to click on somethiing and have a "save as" dialogue pop-up to save a server-side file on the client machine. From what I've read the ONLY way to do this is via IE's supported document.execCommand('Save As'). Even using Java, you must rely on the HTTP headers (content-type, content-disposition, etc.) and HOPE the browser conforms to the spec. However I found IE6 notices my file is a normal text file and just displays it anyway, even though I'm telling it application/octet-stream, etc..
Are my observations correct? Does anyone know how to force a "Save As" option rather than displaying a file's contents reliably across all browsers??
Thanks!