Muj*_*bly 10 javascript nested showmodaldialog internet-explorer-8 internet-explorer-11
我正在使用一个Web应用程序,它使用许多模态对话框来获取输入.当我开始使应用程序与IE11兼容时,问题就开始了(它在IE8中运行得非常好).当从主页调用时,模态对话框完美地返回值,但是当我从模态对话框创建模态对话框时,返回值但未被捕获并被视为undefined
.
//calling the values
var ret = ShowDialogOpen(pageUrl, width, height);
function ShowDialogOpen(PageName, strWidth, strHeight) {
var DialogOptions = "Center=Yes; Scrollbar=No; dialogWidth=" + strWidth + "; dialogTop=150px; dialogHeight=" + strHeight + "; Help=No; Status=No; Resizable=Yes;";
var OpenUrl = PageName;
var ret = window.showModalDialog(OpenUrl, "Yes", DialogOptions);
return ret;
}
//Dialog returning values
function ReturnValues() {
var lstBox = document.getElementById("lst_Name");
var texts = "";
var values = "";
for (i=0; i<lstBox.options.length; i++) {
texts = texts + lstBox.options[i].text + "!";
values = values + lstBox.options[i].value + "!";
}
window.returnValue = texts + "$" + values;
Close();
return false;
}
Run Code Online (Sandbox Code Playgroud)
当通过主页使用时,此代码可以正常工作,但是当我从模态对话框页面使用它时returnValue
会丢失.
小智 6
这是MS最近发布的安全补丁中的一个错误:http: //blogs.msdn.com/b/ie/archive/2014/12/09/december-2014-internet-explorer-security-updates-amp-disabling -ssl-3-0-fallback.aspx
归档时间: |
|
查看次数: |
5322 次 |
最近记录: |