Results 1 to 4 of 4

Thread: [RESOLVED][3.2.0][IE8] ExtJS not working at all

  1. #1
    Sencha Premium Member a.bongardt's Avatar
    Join Date
    Mar 2010
    Location
    Offenbach, Germany
    Posts
    37

    Default [RESOLVED][3.2.0][IE8] ExtJS not working at all

    Hi,

    I've been developing an ExtJS application for about a month now. Today I tried to open it in IE for the first time.

    I expected some layout issues or something similar, but I was very suprised when I had to see that it didn't work at all. My IE found an "error on this webpage": 'events' is null or not an object, line 18964 in ext-all-debug.js. If I use ext-all.js instead, the error message appears, too.

    Here is the code snippet where it happens:

    Code:
    Ext.Container = Ext.extend(Ext.BoxComponent, {
        // --- snip ---
        applyDefaults : function(c){
            var d = this.defaults;
            if(d){
                if(Ext.isFunction(d)){
                    d = d.call(this, c);
                }
                if(Ext.isString(c)){
                    c = Ext.ComponentMgr.get(c);
                    Ext.apply(c, d);
                }else if(!c.events){ // here is the problem
                    Ext.applyIf(c, d);
                }else{
                    Ext.apply(c, d);
                }
            }
            return c;
        },
        // --- snap ---
    }
    I'm not sure what to do. The page works perfectly in Firefox and Chrome.

    Thank you in advance.

    -- Andy

    P.S.: I used ExtJS 3.2.0 (final) and IE8 (all patches)

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    Probably an extra comma somewhere:

    Code:
    [{
    },{
    },{
    },]
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    It's always worth running your code through www.jslint.com to catch problems like "trailing comma".

  4. #4
    Sencha Premium Member a.bongardt's Avatar
    Join Date
    Mar 2010
    Location
    Offenbach, Germany
    Posts
    37

    Default

    You were both right...

    Thanks a lot for these very quick replies.

    I already scanned my scripts for extra commas, but I didn't find any. JSLint found it in a library I used for my app.

    -- Andy

    Edit: P.S.: Stupid IE... What a misleading error message!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •