Nov 03, 2011, 2:27 PM
[CLOSED] Show Mask using javascript.
Hi,
I have to show mask while calling direct method from javascript and the mask should hide after complete the direct method. I have implemented following way, but the mask is not show. I think the functionality is working, means showing and hiding of mask is working, but it is not showing depending on the direct method execution time. Can you please let me know how to show mask until direct method execution time?
I have to show mask while calling direct method from javascript and the mask should hide after complete the direct method. I have implemented following way, but the mask is not show. I think the functionality is working, means showing and hiding of mask is working, but it is not showing depending on the direct method execution time. Can you please let me know how to show mask until direct method execution time?
var RemoveTask = function (cmd, taskid, appid, taskname) {
if (cmd == "CmdDelTask") {
var loadmask = new Ext.LoadMask(Ext.getBody(), { msg: "Please wait..." });
loadmask.show();
Ext.net.DirectMethods.DeleteTask(taskid, appid, taskname);
loadmask.hide();
}
Last edited by Daniil; Nov 09, 2011 at 5:36 PM.
Reason: Please use [CODE] tags, [CLOSED]