【发布时间】:2015-02-19 15:19:10
【问题描述】:
我在我的 java 代码中使用了 jQuery File Download 插件,并且可以在 Firefox 和 Chrome 上正常工作,但不能使用 Internet Explorer 开始下载。 我设置了这些标题:
response.setHeader("Set-Cookie", "fileDownload=true; path=/");
response.setHeader("Content-Disposition","attachment; filename="+file);
在我的 javascript 中,我使用以下代码:
$.fileDownload(
"/async/paas/caaas/downloadCertificate/"+serialNumber,
{
successCallback: function (url) {
//
},
failCallback: function (HttpServletResponse, url) {
$(“#modalDownloadFailedCertificate”).modal("show");
}
}
);
return false;
在 IE 中,使用 F12 模式,我有这一行:
网址:async/paas/caaas/downloadCertificate/591C94
方法:GET(在 sospeso 中......)
Risultato:(在 sospeso...)
提示:(在 sospeso 中......)
Ricevuti:0 B
Tempo impiegato:(在 sospeso...)
Iniziatore: esplorazione 框架
有人有同样的问题吗? 提前致谢
【问题讨论】:
标签: java javascript jquery internet-explorer controller