Search code examples
javascriptiframeextjsextjs4.2

How to remove loader mask in iframe at the time of loading the url


i want to hide the default loader mask for the iframe at the time of loading the url

{
                    xtype: 'uxiframe',
                     listeners: {
                        afterrender: function () {
                                     this.load('https://www.google.pl/images/srpr/logo11w.png');
                        }
                     }
                }

Solution

  • items : [{
        xtype : "component",
        autoEl : {
            tag : "iframe",
            src : ...
        },
        listeners: {
            load: {
                element: 'el',
                fn: function () {
                    this.parent().unmask();
                }
            },
            render: function () {
                this.up('panel').body.mask("Loading...");
            }
        }
    
    }]