[CLOSED] TypeError: l.createEvent is not a function - Firebug

  1. #1

    [CLOSED] TypeError: l.createEvent is not a function - Firebug

    Hello,

    please could anyone help me ?
    During testing my programs in Firefox tool Firebug I have received " l.createEvent is not a function" - ext.axd?v=10682 (row 18).

    This error appears after doubleclick to title of browser window (double-click action on a window title bar originally maximize/restore the window ). But in my program I do not use specific event script for this action.

    All my programs created in 2.52 version Ext.Net indicate this error, but programs created in Ext 1.x not.

    Thanks very much

    Regards
    Rosta
    Last edited by Daniil; Aug 05, 2014 at 12:57 PM. Reason: [CLOSED]
  2. #2
    Hi @Rosta,

    Welcome to the Ext.NET forums!

    It is hard to say what is going wrong. For the beginning let's do the following.

    " l.createEvent is not a function" - ext.axd?v=10682 (row 18).
    The error message leads me to think that there is the minified JavaScript code. For development and debugging it is better to use non-minified JavaScript code.

    Please set this setting for a ResourceManager
    ScriptMode="Development"
    or globally in Web.config (in the <extnet> section)
    scriptMode="Development"
    Then, please, re-post the error message. Also a screenshot with the JavaScript code where the error occurs might be helpful.
  3. #3
    Hello Daniil,
    thanks. After recommended settings I received this error specification

    TypeError: doc.createEvent is not a function
        var event = doc.createEvent('HTMLEvents');
    Detail script
    if (!Ext.isIE9m && document.createEvent) { // if (DOM compliant)
                API = {
                    createHtmlEvent: function (doc, type, bubbles, cancelable) {
                        var event = doc.createEvent('HTMLEvents');
    
                        event.initEvent(type, bubbles, cancelable);
                        return event;
                    },
    
                    createMouseEvent: function (doc, type, bubbles, cancelable, detail,
                                                clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
                                                button, relatedTarget) {
                        var event = doc.createEvent('MouseEvents'),
                            view = doc.defaultView || window;

    Thanks very much

    Regards
    Last edited by Daniil; Jul 25, 2014 at 11:18 AM. Reason: Please use [CODE] tags
  4. #4
    Thanks.

    Hard to say what is going wrong.

    Could you debug what the "doc" and its "createEvent" variables are?

    If you can provide a standalone test case, steps to reproduce, specify the versions of Ext.NET and browser that it is reproducible with, we could also investigate it.
  5. #5
    Hello Daniil

    thanks very much . It is possible to close it. I checked once more all java scripts and repaired some warnings and removed java srcipts from apsx file to js file. And now It is OK, but I do not know what was wrong.

    Regards

    Rosta
  6. #6
    I do not know what was wrong
    Hard to say. If you can provide a runnable test case to reproduce the issue, I could look at.

Similar Threads

  1. Firebug 2.0 not working with Ext
    By glenh in forum 2.x Help
    Replies: 5
    Last Post: Jun 17, 2014, 9:05 AM
  2. [CLOSED] TypeError: this.layout.setContainer is not a function
    By jesperhp in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jul 12, 2013, 3:17 PM
  3. [CLOSED] TypeError: this.layout.setContainer is not a function
    By jesperhp in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 13, 2013, 3:50 PM
  4. Some error from firebug
    By thomson in forum 1.x Help
    Replies: 2
    Last Post: Mar 01, 2011, 7:06 PM
  5. Label is Undefined - Firebug Error
    By sachin.munot in forum 1.x Help
    Replies: 1
    Last Post: Aug 09, 2009, 3:50 PM

Posting Permissions