jsp里面的链接
<a href="#" onclick='MM_openBrWindow("?optionid=11111&item=2013&studentid=${CarProuct.studentId}&testid=${CarProuct.testId}&sele=1&examName=${CarProuct.examName}&test_Date=${CarProuct.examDate}",
"testid=${CarProuct.testId}&subject_name=${CarProuct.subjectName}",this);'>调用js里面的MM_openBrWindow
function MM_openBrWindow(theURL, winName, obj) { //v2.0
var url = "${pageContext.request.contextPath}/onceTestAnalyse.do?method=getPaperVO&" + winName;
// alert(url);
var returnstr = sendHaveParameterCrossPlatform(url, "");
theURL = '${pageContext.request.contextPath}/b2cIndex/reporttwo/index.jsp' + theURL;
alert(theURL);
window.open(theURL, "", 'fullscreen=yes,Status=yes,scrollbars=yes,resizable=yes');
//window.open(theURL);
//window.open("", "", 'fullscreen=yes,Status=yes,scrollbars=yes,resizable=yes');
//obj.href=theURL;
}
function sendHaveParameterCrossPlatform(URL, parameter) {
var strReturn = null;
var xmlHttp = new Ajax.Request(
URL,
{
method:'post',
contentType:'application/x-www-form-urlencoded;charset=GBK',
asynchronous:false
});
if (xmlHttp.transport.readyState == 4) {
if (xmlHttp.transport.status == 200) {
strReturn = xmlHttp.transport.responseText;
}
}else {
alert("网络异常,请稍候再试!");
}
return strReturn;
}
点击链接是没有反应,ie8上返回的错误信息是:没有注册类别
onceTestAnalyse.do
code:0
URL:http://localhost:8888/b2c/onceTestAnalyse.do?method=initLevelExamList
<a href="#" onclick='MM_openBrWindow("?optionid=11111&item=2013&studentid=${CarProuct.studentId}&testid=${CarProuct.testId}&sele=1&examName=${CarProuct.examName}&test_Date=${CarProuct.examDate}",
"testid=${CarProuct.testId}&subject_name=${CarProuct.subjectName}",this);'>调用js里面的MM_openBrWindow
function MM_openBrWindow(theURL, winName, obj) { //v2.0
var url = "${pageContext.request.contextPath}/onceTestAnalyse.do?method=getPaperVO&" + winName;
// alert(url);
var returnstr = sendHaveParameterCrossPlatform(url, "");
theURL = '${pageContext.request.contextPath}/b2cIndex/reporttwo/index.jsp' + theURL;
alert(theURL);
window.open(theURL, "", 'fullscreen=yes,Status=yes,scrollbars=yes,resizable=yes');
//window.open(theURL);
//window.open("", "", 'fullscreen=yes,Status=yes,scrollbars=yes,resizable=yes');
//obj.href=theURL;
}
function sendHaveParameterCrossPlatform(URL, parameter) {
var strReturn = null;
var xmlHttp = new Ajax.Request(
URL,
{
method:'post',
contentType:'application/x-www-form-urlencoded;charset=GBK',
asynchronous:false
});
if (xmlHttp.transport.readyState == 4) {
if (xmlHttp.transport.status == 200) {
strReturn = xmlHttp.transport.responseText;
}
}else {
alert("网络异常,请稍候再试!");
}
return strReturn;
}
点击链接是没有反应,ie8上返回的错误信息是:没有注册类别
onceTestAnalyse.do
code:0
URL:http://localhost:8888/b2c/onceTestAnalyse.do?method=initLevelExamList
把這段:window.open(theURL, "", 'fullscreen=yes,Status=yes,scrollbars=yes,resizable=yes');
改為以下就OK了
var win = window.open(url,""_blank"");
win.location.href = url;