IE 11中更新面板中的javascript null问题 [英] javascript null issue in update panel in IE 11
本文介绍了IE 11中更新面板中的javascript null问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
Hi All,
function showWordList(sender, eventArgs) {
if (Sys.WebForms.PageRequestManager.getInstance()._postBackSettings.panelsToUpdate[0] != null) {
if (Sys.WebForms.PageRequestManager.getInstance()._postBackSettings.panelsToUpdate[0].indexOf("upParseQueryUsingDtSearch") > 0)
{
if (document.getElementById(hdnQueryError1).value != '') {
alert(document.getElementById(hdnQueryError1).value);
document.getElementById(hdnQueryError1).value = "";
}
else {
alert("Current query is validated successfully.");
}
return false;
}
}}
Sys.WebForms.PageRequestManager.getInstance()._ postBackSettings.panelsToUpdate [0]
在IE 11中
null值引用,它在所有其他浏览器中都可以正常工作。
谢谢&问候
Mohd Wasif
Sys.WebForms.PageRequestManager.getInstance()._postBackSettings.panelsToUpdate[0]
null value reference in IE 11 and it works fine in all other browser.
Thanks & Regards
Mohd Wasif
推荐答案
欢迎使用浏览器地狱。解决这个问题的方法是抛弃ASP.NET AJAX(它是垃圾)并使用jquery,这是一个可移植,功能强大且跨浏览器的库。
Welcome to browser hell. The way around it is, throw away ASP.NET AJAX ( it is rubbish ) and use jquery, a library that is portable, powerful and cross browser.
这篇关于IE 11中更新面板中的javascript null问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文