Hi,
I'm working on a complex web application. At one point, when a user clicks on a link, I examine the link and determine based on the extension of the file what to do with it.
If the extension is swf or mpg or other media types, I open a new window and use document.write to create a page that uses <object>/<embed> to show the media.
If the extension is anything else, I do a window.location = URL. If the URL points to a word or excel doc (and I am using firefox), I am prompted if I want to open the file in the appropriate application or save the file to my computer.
IE does the same thing.
Safari however doesn't ask. It acts like nothing happens when I click on the link, except I verified the javascript is in fact running. And, the file gets silently saved to the desktop, no warning.
Has anyone else seen this behavior? Is there a way to get safari to prompt to either open or save?
Thanks
I'm working on a complex web application. At one point, when a user clicks on a link, I examine the link and determine based on the extension of the file what to do with it.
If the extension is swf or mpg or other media types, I open a new window and use document.write to create a page that uses <object>/<embed> to show the media.
If the extension is anything else, I do a window.location = URL. If the URL points to a word or excel doc (and I am using firefox), I am prompted if I want to open the file in the appropriate application or save the file to my computer.
IE does the same thing.
Safari however doesn't ask. It acts like nothing happens when I click on the link, except I verified the javascript is in fact running. And, the file gets silently saved to the desktop, no warning.
Has anyone else seen this behavior? Is there a way to get safari to prompt to either open or save?
Thanks