首先,此代码在WAS 6.1环境中运行,但在迁移到WAS 8.0后却没有。正在使用的浏览器是IE8。是的我知道WAS是在后端,但看看改变了什么是主要的。
情景:
win1 = window.open("", "mainFrame", "");
现在提供拒绝访问错误。 任何想法?
function pageInit() {
var aboutBlank = "true";
var url = "";
try{
// get handle to existing open page
win1 = window.open("", "mainFrame", "");
alert("step 1 after window.open");
// Check for the resetTab field. If found, set it to Y
// do some stuff to the existing open page
if (typeof win1.document.forms[0].resetTab != "undefined"
&& win1.document.forms[0].resetTab != null)
{
win1.document.forms[0].resetTab.value = 'Y';
}
win1.navigateToPage('<%=retrieveLink%>');
}catch(ex){
// If error is that object doesn't support property or method, then
// user is probably not logged in.
if (ex.description.indexOf("doesn't support this property or method") > -1)
{
alert("No current session available" + ex.description);
} else {
alert('An error occurred: ' + ex.description);
}
}
} // end of pageInit
close();
}