Javascript错误:无法获取未定义或空引用的属性“单击” [英] Javascript Error: Unable to get property 'click' of undefined or null reference

查看:528
本文介绍了Javascript错误:无法获取未定义或空引用的属性“单击”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在页面上做某事后尝试导航到另一个页面(添加到数据库,搜索记录等)时,我收到此错误。 错误:无法获取未定义或空引用的属性'。'



我使用的唯一Javascript是:



I am getting this error when i try to navigate to another page after doing something on the page (adding to database, searching records etc). "Error: Unable to get property 'click' of undefined or null reference".

The only Javascript i am using is:

<!-- Script to show/hide the progress indicator on each page -->
   <script type="text/javascript" language="javascript">
       Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
       Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);

       // Show Progress Indicator.
       function beginRequest(sender, args) {
           var extender = findExtender();
           if (extender != null) {
               extender.show();
           }
       }

       // Hide Progress Indicator.
       function endRequest(sender, args) {
           var extender = findExtender();
           if (extender != null) {
               extender.hide();
           }
       }

       // Find the AJAX Progress Indicator.
       function findExtender() {
           return $find('<%=progressPopupExender.ClientID%>');
       }
   </script>





我也在使用更新面板。



任何帮助都将非常感谢,提前感谢!



I am also using an update panel.

Any help would be greatly appreciated, thanks in advance!

推荐答案

find('<% = progressPopupExender.ClientID %> ');
}
< / script >
find('<%=progressPopupExender.ClientID%>'); } </script>





我也在使用更新面板。



任何帮助都将非常感谢,提前感谢!



I am also using an update panel.

Any help would be greatly appreciated, thanks in advance!


问题是更新面板。删除更新面板不会导致错误。仍在寻找一种解决方法,因为我需要页面上的更新面板。我假设我的javascript正在干扰更新面板。
The problem is the update panel. Removing the update panel results no error. Still looking at a workaround because i need an update panel on the page. I am assuming the javascript i have is interfering with the update panel.


这篇关于Javascript错误:无法获取未定义或空引用的属性“单击”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆