Hi all,
I am using $ajax( { type:"post", url:"/whatever/" } )
to access my server which works nicely. The problem is that the response is not evaluated as I need it.
On some occations the server sends back a dummy string ("x") which can be ignored on the browser, but on other occasions my server sends back a special file as attachment:
mimetype application/x-my-special-type
Content-Disposition attachment; filename=myname.ext
....
But the browser (I am only interested in Google Chrome / Chromium - it's an intranet thing) does not show the download popup window. (Calling the "/whatever/" URL directly in the address bar actually DOES show the download popup window to save the file.)
How can I persuade jQuery to show the usual download popup window?