dwr callback 文件下载框被拦截

callback中window.open后弹出文件下载框却立马消失了,网上找到的解决办法,记录下..

 

function exportList(txtOrExcel){
	dwr.engine.setAsync(false); 
	ClientGroupMgmt.exportUsers(listId_exp, function(fileName) {
		 window.open("<%=request.getContextPath()%>/common/ftpdownloadByFileName.jsf?fileName="+fileName);
		});
	dwr.engine.setAsync(true); 

 

前后加上dwr.engine.setAsync(...);

 

详看http://jkam.iteye.com/blog/740337

你可能感兴趣的:(DWR,JSF,Blog)