首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

做了一个上载,在FF中正常上载,在IE中如何显示404异常呢

2012-09-10 
做了一个下载,在FF中正常下载,在IE中怎么显示404错误呢?下载代码是:var searchText$(searchText).value

做了一个下载,在FF中正常下载,在IE中怎么显示404错误呢?
下载代码是:
var searchText=$('searchText').value;
var wnd=openCenterWindow("poem/batchDownload.do?searchText="+searchText,"下载XLS",400,300);

openCenterWindow函数是:
function openCenterWindow(url,windowName,width,height){
  var left = (window.screen.availWidth-10-width)/2;  
  var top = (window.screen.availHeight-30-height)/2;  
   
var wnd=window.open(url,windowName,"height="+height+",width="+width+",top="+top+",left="+left+",resizable=yes,scrollbars=yes,status=no,location=no,");
return wnd;
}

下载是一个文本文件,在FF中好用,没有问题。在IE中怎么就显示404错误呢?另IE中开的是新窗口,里面显示404错误。

[解决办法]
你把路径写全一下看看,
var wnd=openCenterWindow("<%=basePath%>poem/batchDownload.do?searchText="+searchText,"下载XLS",400,300);

热点排行