AjaxManager, Firefox gives -TypeError: access to strict mode..

2 posts, 0 answers
  1. Christian
    Christian avatar
    69 posts
    Member since:
    Apr 2008

    Posted 28 Sep 2018 Link to this post

    Running 2018.3.910


    function RefreshGrid() {



    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
             <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                   <telerik:AjaxUpdatedControl ControlID="grCart" />
             <telerik:AjaxSetting AjaxControlID="grCart">
                   <telerik:AjaxUpdatedControl ControlID="grCart" />
              <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                   <telerik:AjaxUpdatedControl ControlID="lvDelMethods" />


    server side,

    protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
            if (e.Argument == "Rebind")


    Error in Firefox - works just fine in Chrome, Edge and IE.

    TypeError: access to strict mode caller function is censored

    _doPostBack http://localhost/Telerik.Web.UI.WebResource.axd:15:13769Function.createDelegate/< http://localhost/Telerik.Web.UI.WebResource.axd:6:305__doPostBack http://localhost/Telerik.Web.UI.WebResource.axd:30710:1__doPostBack http://localhost/Telerik.Web.UI.WebResource.axd:30710:1__doPostBack http://localhost/Telerik.Web.UI.WebResource.axd:30710:1ajaxRequest http://localhost/Telerik.Web.UI.WebResource.axd:1930:27RefreshGrid http://localhost/Scripts/cart.js:129:5<anonymous> http://localhost/Scripts/cart.js:117:9dispatch http://localhost/Scripts/plugins/jquery-3.3.1.min.js:2:41720add/y.handle http://localhost/Scripts/plugins/jquery-3.3.1.min.js:2:39774


    Seems to be working if the request comes from the grid itself but not from the ajaxmanager request.

    Any idea what causes this?




  2. Marin Bratanov
    Marin Bratanov avatar
    5243 posts

    Posted 01 Oct 2018 Link to this post

    Hello Christian,

    Judging from the stack trace, the problem origin is jQuery 3.3.1 which breaks the __doPostBack method from the MS AJAX framework. We encountered the same problem when we upgraded the jQuery we bring in R2 2018 and this is why we returned to 1.x. You can read more about this here: https://www.telerik.com/forums/known-issues-and-important-changes#KKI7NGE4P0K-jwQGL525dA.

    I'm afraid that there are no known solutions for this (apart from the obvious jQuery downgrade), as it is a problem between how the MS AJAX framework is implemented and 'use strict' that jQuery 3 begins with. Perhaps you could remove the strict mode from the jQuery you use, but if you upgrade jQuery the issue may rear up again. Also, if some other script puts the page in strict mode, you'd get the same error again.

    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top