This is a migrated thread and some comments may be shown as answers.

[Solved] _events is null or not an object

1 Answer 133 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Yuvika
Top achievements
Rank 1
Yuvika asked on 20 Jan 2010, 10:38 AM

Hi,

I am facing a problem that whenever I go out of my page after opening modal pop- up on some other page, I get  a js error.
"_events is null or not an object". This is the code of my master page.

 
    <asp:HiddenField runat="server" ID="hdnSelecteCol" /> 
    <telerik:RadScriptManager ID="radScriptManagerMain" runat="server" AsyncPostBackTimeout="360000" 
        EnableScriptCombine="true">  
        <Scripts> 
            <asp:ScriptReference Path="~/JavaScripts/jquery-1.3.2.min.js" /> 
            <asp:ScriptReference Path="~/JavaScripts/SlidingDiv.js" /> 
            <asp:ScriptReference Path="~/JavaScripts/jquery.autocomplete.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadWindowManager ID="RadWindowManagerresult" runat="server" BorderStyle="None" 
        BorderWidth="0" Width="800px" Height="540px" Skin="WebBlue" Animation="None" 
        IconUrl="/Images/windowIcon.gif" Behavior="Close,Move,Pin" VisibleStatusbar="false" 
        VisibleTitlebar="true" DestroyOnClose="True">  
    </telerik:RadWindowManager> 
    <asp:Button ID="btnOpenProgressBar" runat="server" Style="display: none" /> 
    <asp:Panel ID="pnlProgressBar" runat="server" Style="display: none; width: 300px;  
        height: 40px; background-color: White; border: 1px solid #6C7685"> 
        <asp:UpdatePanel ID="upUpdateProgress" UpdateMode="Conditional" runat="server">  
            <ContentTemplate> 
                <asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="0" runat="server">  
                    <ProgressTemplate> 
                        <div style="text-align: center; vertical-align: middle; padding-top: 10px;">  
                            <span style="vertical-align: middle">  
                                <img alt="" src="<%#ResolveUrl("~/")%>/Images/indicator.gif" /></span<span style="color: #455F77;  
                                    padding-bottom: 15px; vertical-align: middle;">Loading...</span></div>  
                    </ProgressTemplate> 
                </asp:UpdateProgress> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </asp:Panel> 
    <ajaxToolkit:ModalPopupExtender OkControlID="btnOpenProgressBar" BehaviorID="mdlProgressBar" ID="mdlProgressBar" runat="server" 
        TargetControlID="btnOpenProgressBar" PopupControlID="pnlProgressBar" CancelControlID="btnOpenProgressBar" 
        BackgroundCssClass="modalBackground">  
    </ajaxToolkit:ModalPopupExtender> 
    <div id="wrapper">  
        <!-- HEADER --> 
        <div id="wrapper-head">  
            <div id="header">  
                <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                    <tr> 
                        <td width="auto">  
                            <img src="<%#ResolveUrl("~/")%>/images/header-left.gif" alt="" width="735" height="94" /> 
                        </td> 
                        <td width="100%" style="background: url(<%#ResolveUrl("~/")%>/images/header-middle.gif) left top repeat-x;"> 
                            <div id="toptabs">  
                                <span style="padding-right: 5px" class="fleft">  
                                    <asp:LinkButton ID="btnHome" runat="server" CssClass="tabTop" Text="Home" Visible="false" 
                                        CausesValidation="false"></asp:LinkButton> 
                                    <asp:LinkButton ID="btnECAHome" runat="server" CssClass="tabTop" Text="ECA Home" 
                                        Visible="false" CausesValidation="false"></asp:LinkButton></span>  
                                <asp:LinkButton ID="btnReports" runat="server" CssClass="tabTop" Text="ECA Reports" 
                                    CausesValidation="false" OnClick="btnReports_Click" Style="padding-right: 5px" 
                                    class="fleft"></asp:LinkButton> 
                                <asp:LinkButton ID="btnAdmin" runat="server" Style="padding-right: 5px" class="fleft" 
                                    CssClass="tabTop" Text="ECA Admin" Visible="false" CausesValidation="false" OnClick="btnAdmin_Click"></asp:LinkButton> 
                                <asp:LinkButton ID="btnSearch" Style="padding-right: 5px" class="fleft" runat="server" 
                                    CssClass="tabTop" Text="ECA Search" Visible="false" CausesValidation="false" 
                                    OnClick="btnSearch_Click"></asp:LinkButton> 
                                <asp:LinkButton ID="btnChangePassword" runat="server" CssClass="tabTop" Style="padding-right: 5px" 
                                    class="fleft" Text="Reset Pwd" Visible="false" CausesValidation="false"></asp:LinkButton> 
                                <span style="padding-right: 5px" class="fleft">  
                                    <asp:LinkButton ID="btnLogin" runat="server" CssClass="tabTop" Text="Login" Visible="true" 
                                        CausesValidation="false"></asp:LinkButton> 
                                    <asp:LinkButton ID="btnLogout" runat="server" CssClass="tabTop" Text="Logout" Visible="false" 
                                        CausesValidation="false"></asp:LinkButton> 
                                </span> 
                            </div> 
                        </td> 
                        <td width="auto">  
                            <img src="<%#ResolveUrl("~/")%>/images/header-right.gif" alt="" width="198" height="94" /> 
                        </td> 
                    </tr> 
                </table> 
                <div id="Logo">  
                    <asp:LinkButton ID="lbtnLogo" runat="server" Width="220px" Height="86px" CausesValidation="false" 
                        OnClientClick="javascript:OpenPlanetds();"></asp:LinkButton> 
                </div> 
                <div id="titleText">  
                    <img src="<%#ResolveUrl("~/")%>/images/assesmenttext.png" alt="EARLY COST ASSESSMENT" title="EARLY COST ASSESSMENT" /> 
                </div> 
                <div id="date">  
                    <b> 
                        <asp:Label ID="lblUser" runat="server" /></b>&nbsp;&nbsp;<%=string.Format("{0:dddd, MMMM dd, yyyy}", DateTime.Now) %> 
                </div> 
            </div> 
            <asp:ContentPlaceHolder ID="cphMenu" runat="server">  
            </asp:ContentPlaceHolder> 
        </div> 
        <!-- END HEADER --> 
        <!-- BODY --> 
        <div id="wrapper-body">  
            <div id="body" style="padding-bottom: 25px">  
                <asp:ContentPlaceHolder ID="cphBody" runat="server">  
                </asp:ContentPlaceHolder> 
            </div> 
            <div id="footer" class="divfooter" runat="server">  
                <uc1:ucFooter ID="ucFooter1" runat="server" /> 
                <asp:UpdatePanel runat="server" ID="upnPerformance" UpdateMode="Always">  
                    <ContentTemplate> 
                        <asp:Label ID="lblPerformanceCounter" runat="server" Text=""></asp:Label></ContentTemplate>  
                </asp:UpdatePanel> 
            </div> 
        </div> 
        <!-- END BODY --> 
    </div> 

Please review the code And let me know what could be the problem.
Thanks in advance.

Regards
Yuvika

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 21 Jan 2010, 01:31 PM
Hi Yuvika,

The code that you posted is working as expected, so I assume that the problem might be somewhere else in the logic. Please make sure that you are using a recent version of the controls and if the problem still exists - open a support ticket and send us a sample project that reproduces this issue. We will check it and do our best to help.


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Yuvika
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or