1. #1
    Sencha User willgillen's Avatar
    Join Date
    Mar 2007
    Posts
    110
    Vote Rating
    0
    willgillen is on a distinguished road

      0  

    Default [1.1][INFO REQ] Ext.LoadMask() and dom.firstChild error in IE

    [1.1][INFO REQ] Ext.LoadMask() and dom.firstChild error in IE


    In a project I'm currently working on using Ext 1.1.1, I have setup an Ext.View. However, the customer is adamant about having a "Loading..." mask because it is taking 2-3 seconds to load the datastore into the view with Ajax.

    So, I have added an Ext.LoadMask:
    Code:
    lm = new Ext.LoadMask(el, {store:ds});
    It works great on the first load in IE, but when I reload the datastore associated with the view ("ds" above), IE generates an error: "dom.firstChild is null or not an object".

    I have read several other threads here on ExtJS Forums, but there doesn't seem to be a final resolution for this. Does anyone else have this same problem, and have any kind of workable solution?

    Thanks!

    -- W.G.

  2. #2
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2007
    Posts
    218
    Vote Rating
    2
    ZooKeeper is on a distinguished road

      0  

    Default


    I'm having exactly the same issue. Happens in extall.js
    It looks like it's failing to access the child of the mask div.

    HTML Code:
        mask : function(msg, msgCls){
            if(this.getStyle("position") == "static"){
                this.setStyle("position", "relative");
            }
            if(!this._mask){
                this._mask = Ext.DomHelper.append(this.dom, {cls:"ext-el-mask"}, true);
            }
            this.addClass("x-masked");
            this._mask.setDisplayed(true);
            if(typeof msg == 'string'){
                if(!this._maskMsg){
                    this._maskMsg = Ext.DomHelper.append(this.dom, {cls:"ext-el-mask-msg", cn:{tag:'div'}}, true);
                }
                var mm = this._maskMsg;
                mm.dom.className = msgCls ? "ext-el-mask-msg " + msgCls : "ext-el-mask-msg";
                mm.dom.firstChild.innerHTML = msg; <--- HERE
                mm.setDisplayed(true);
                mm.center(this);
            }
            if(Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && this.getStyle('height') == 'auto'){ 
                this._mask.setHeight(this.getHeight());
            }
            return this._mask;
        },
    Probably it's solved as for 2.0, but it looks like a bug to me.
    If no one knows what's that, I'll probably make a live demo.

  4. #4
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,561
    Vote Rating
    384
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Thank you for the bug report. We will investigate it and we will inform you on the result.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #5
    Ext User
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    7
    Vote Rating
    0
    LuWa is on a distinguished road

      0  

    Default


    Is there any solution now? I have exactly the same problem and want to solve it.

  6. #6
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    It's in the queue, and we'll let you know.

  7. #7
    Ext User
    Join Date
    Oct 2007
    Posts
    41
    Vote Rating
    0
    aendo is on a distinguished road

      0  

    Default


    Hello, is the fix still in the queue? Do you have any rough ETA for it?
    Thanks.

  8. #8
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    If anyone is still having this issue, please post a test case that reproduces the problem along with whether or not it affects only 1.x or 2.x also and I'll look into it further.

  9. #9
    Ext User
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    7
    Vote Rating
    0
    LuWa is on a distinguished road

      0  

    Default


    I still have this Problem with Ext 1.x with the EditorGrid

  10. #10
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Can you provide a test case?