olerag
07-02-2003, 01:59 PM
I'm trying to access the browser's "File Download" dialog (that, ultimately, provides access to the client's "Save As" dialog, via the "Save" option) regardless of the file type. Is there a way to do this in either html or javascript?
I've placed the "ftp" (in lieu of "http") in the <a href> URL but apparently this will only work if the site is an anonymous FTP server.
If the "http" is provided in the <a href>, only binary executables will display the download diaglog for IE. Consequently, Netscape will provide the download dialog for other file types as well, such as Word documents. Also, Netscape can be "tricked" with a bogus "mime" but won't work with IE.
Regardless, since the browser is permitting a download capability (including image copies), it would seem there would be a way to comminicate with the browser to overide the attempt to "open" the file to access the "download" dialog.
I've placed the "ftp" (in lieu of "http") in the <a href> URL but apparently this will only work if the site is an anonymous FTP server.
If the "http" is provided in the <a href>, only binary executables will display the download diaglog for IE. Consequently, Netscape will provide the download dialog for other file types as well, such as Word documents. Also, Netscape can be "tricked" with a bogus "mime" but won't work with IE.
Regardless, since the browser is permitting a download capability (including image copies), it would seem there would be a way to comminicate with the browser to overide the attempt to "open" the file to access the "download" dialog.