15
Jun

If, you need to show a load mask anywhere (not necessarily linked to a store) then you can do something like this:

var myMask;
Ext.setup({
	tabletStartupScreen: 'images/Splash.png',
    phoneStartupScreen: 'images/Splash.png',
    icon: 'images/icon1.png',
    glossOnIcon: true,
    onReady: function() {
        // We are linking the loading mask to the document body
        // Ext.getBody() will get the document body - it will work only after the document body is ready!
        myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Working..."});
        doSomethingLong();
    }
});

function doSomethingLong() {
    myMask.show();
    if (....) {
        .......
        .......
        .......
    }
    myMask.hide();
}

, , , , , , ,

gayatri.sa
Posted by on 15 Jun 2011 by gayatri.sa in Sencha

Add reply

*