jeudi 27 novembre 2014

Ext.MessageBox.Wait

Hi guys,

i'm using ext 3.4.

I've a function that spent time to do a synchronize operation.


I'd like to show a wait message during the operation like below example



Code:



function test()
{
Ext.MessageBox.wait('Loading, 'wait');
// My Operation
Ext.MessageBox.wait('Loading, 'wait').hide();
}

The problem is that the wait Message is never shown because the framework render the object only when the function ends. This means that the wait message is shown and hidden but uselessly.

I found this solution but is there a better way?



Code:



function test()
{
show();
setTimeout(test2, 0);
}
function test2()
{
// My Operation
hide();
}





Ext.MessageBox.Wait

Aucun commentaire:

Enregistrer un commentaire