Ticket T136952
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Why doesn't an HTML5/JS based component work and why do I get errors on the client side?

Javascript error when loading DXR.axd script

created 11 years ago (modified 11 years ago)

Dear DevExpress support,
  I've upgraded my project from DevExpress 13.1 version to 14.1.5 and I encountered an javascript error when dynamic DXR.axd javascript is loading (error is below). I attach all required libraries (Knockout 3.1.0, jQuery 1.11.1, globalize.js and globalize.culture.js). I am not sure but I thing that this error cause the reporting stops working beacuse when I try to render report on web it shows only this error: MVCxClientReportViewer is not defined. PDF, Excel, etc. exports works great. Only web rendering does not work.

The DXR.axd contains constructor for this object but that is never hit (I place breakpoint there). 'MVCxClientReportViewer = _aspxCreateClass(ASPxClientReportViewer), …etc'

TypeError: n.ui is undefined
http://192.168.254.102/CA/DXR.axd?r=1_171,1_94,1_93,14_33,14_2,1_152,1_164,1_91,1_156,1_101,14_7,1_154,1_103,1_102,14_8,1_114,1_121,1_169,1_138,1_170,1_124,14_9,1_163,1_162,1_147,14_32,1_157,1_98,1_125,1_104,1_166,1_139,14_13,1_97,1_141,1_142,14_15,1_155,1_143,1_144,14_16,14_17,1_126,14_11,1_146,1_149,14_20,1_160,14_22,1_158,1_153,1_161,14_25,1_165,14_28,14_31,1_100,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_14,4_12,1_113,1_116,4_13,4_14,1_110,1_112,1_137,14_12,1_159,7_49,7_47,7_51,14_21,1_105,1_108,1_117,14_0,1_120,1_106,14_1,1_107,14_3,1_109,1_122,14_5,1_145,1_119,14_18,14_19,1_118,14_29,1_123,10_2,10_1,10_3,10_4,14_4,9_21,9_23,14_24,9_13,9_10,9_8,14_23,9_12,9_9,9_15,9_11,1_96,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_26,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_30-3jo69
Line 91394 Col 9500

Strange thing is that I try some example project (downloaded here: http://www.devexpress.com/Support/Center/Question/Details/Q364463),,) where this error occures as well after upgrade to 14.1.5, but reporting works great.

Regards,
  Miroslav Jasso

Comments (1)

    I forgot mention that this error occured in newest FF 31.0. In IE11 is another error:
       SCRIPT5007: Unable to get property 'dxDropDownEditor' of undefined or null reference. File: DXR.axd, Line: 91394, Column: 9497

    Answers approved by DevExpress Support

    created 11 years ago (modified 11 years ago)

    Hi Miroslav,

    This is a known issue and currently our developers are working on it. Please refer to the T115434: Why doesn't the ASPxReportDesigner control/MVC ReportDesigner extension work and client-side errors are thrown ticket for more information. We will update it once we have any progress on this issue.

    Yes, as a temporary workaround, use the embedRequiredClientLibraries setting to make all required scripts be registered automatically.

    >> Is it normal that uncompressed DXR javascript has over 5MB?
    When the embedRequiredClientLibraries setting is enabled, all required scripts libraries are included in our script file (DXR), that's why its size is so large.

      Other Answers

      created 11 years ago

      OK, I fixed it by adding 'embedRequiredClientLibraries' settings to web.config. Unfortunatelly it causes that my client code needs a lot of changes (because of diferent jQuery version and some jQuery extensions and modifications). It is very uncomfortable but acceptable solution for now.

        Show previous comments (2)
        Vasily (DevExpress Support) 11 years ago

          Hi Syed,

          To process your recent post more efficiently, I created a separate ticket on your behalf: T162062: Javascript error when loading DXR.axd script. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

          AK AK
          Andrey Krasnov 2 9 years ago

            Any solution for this from Development side ?
            3 years later, and I am still getting the same error.

            Unable to get property 'frameElement' of undefined or null reference. DXR.axd (6824,3)
            IFrameHelper.GetElement = function(name) {
             if(ASPx.Browser.IE)
              return window.frames[name].window.frameElement;
             else
              return document.getElementById(name);
            };

            Vasily (DevExpress Support) 9 years ago

              Hi Andrey,

              I've created a separate ticket on your behalf (T421245: "Unable to get property 'frameElement' of undefined or null reference." exception is thrown). It has been placed in our processing queue and will be answered shortly.

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.