A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jan 07, 2007
Jul 20, 2012 09:58:40
A new window is opened but when i'm getting an error response like this:
Internet explorer cannot download somefile from localhost.
I'm setting the following headers in the HTTP response at the server side:
response.setContentType("text/plain"); response.setHeader("Content-disposition", "attachment;filename="+fileName); response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache");
My browser version is IE 8. This is working in latest version of chrome.
Please help in resolving the issue. Also, how to get Open/Save/Cancel dialog box when window.open is triggered and the response is obtained from the server?
I agree. Here's the link:
response.setHeader("Refresh", "10; URL=http:\\ www.javaranch.com");
File Download Issue in IE
problem with download dialog box
IE Address Bar issue
Outputting to .txt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014