询问者
ie11 更新版本(11.0.15), showModalDialog 模态窗体中再次 showModalDialog 一个模态窗体时,无法获取到参数及返回值

问题
-
IE的更新版本: 11.0.15, 安装更新为:KB3008923IE版本号:11.0.9600.17501
在更新至上述版本后,IE11,
showModalDialog 模态窗体中再次 showModalDialog 一个模态窗体时,无法获取到参数及返回值
代码如下:
a页面:
function a(){
window.showModalDialog("b.html", {param:1 });
}
b页面:
window.onload = function(){
var val = window.dialogArguments.param; // 可以获取到值
// todo....
var returnVal = window.showModalDialog("c.html", {param:val });
// todo....
};
c页面:
window.onload = function(){
var val= window.dialogArguments.param; // 一直为 undefined
//todo
}
全部回复
-
showModalDialog第二个参数可以传给要打开的页面,然后在页面里面通过window.dialogArguments获得这个参数。
昨天win7系统更新补丁后,如果先showModalDialog打开一个对话框,然后再在这个对话框里面再调用showModalDialog打开另外一个对话框,此时window.dialogArguments将会是“undefined”
如果只有一层showModalDialog,则不会有问题。这个事情是昨天系统更新之后才出现的!
微软这样搞一下,真的会害死很多正常运行的系统。微软应该对揪出责任人给予严厉的处分!
da jia hao!
- 已合并 Pengzhen Song 2014年12月18日 12:47 same question
-
一早上就接到NXN个客户的投诉电话!
da jia hao!
- 已合并 Pengzhen Song 2014年12月12日 3:35 duplicate
-
-
大家好,
我在别的地方也看到有人有同样的问题,可惜的是在我的机器上win8.1,安装了KB3008923, IE 的版本号是11.0.9600.17498。暂时不能重现这个问题。另外这个看起来是产品问题,我建议你去technet IE forum 去提交这个问题,在那里你可以得到更好的解答。
https://social.technet.microsoft.com/Forums/ie/en-US/home?category=internetexplorer
谢谢你的理解。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.