I am using Extjs for my application. What event / listener is triggered when extjs fully loads the application (images and all)?
I tried following, but none of them worked:
- body or window onload (body tag is empty)
- viewer render listener
What I am doing now: when I launch the application, it displays a download mask. Then the ajax request is launched, and when it is completed, the “boot mask” will be removed. The following might give some idea:
Ext.onReady(function(){
Ext.ux.mask = new Ext.LoadMask(Ext.getBody(), {msg: "Loading..."});
Ext.ux.mask.show();
ajax_request();
function ajax_request() {
Ext.ux.mask.hide();
}
});
The problem is that the ajax request is time consuming, so I want to change the work as follows:
Ext.onReady(function(){
Ext.ux.mask = new Ext.LoadMask(Ext.getBody(), {msg: "Loading..."});
Ext.ux.mask.show();
ajax_request();
function ajax_request() {
}
function everything_loaded() {
Ext.ux.mask.hide();
}
});
Any idea on this? Thank you very much for your help.
source
share