Today, I am working on Ext. Ajax. Request ({});. I think the mask block is required.
Method 1: (marked with red)
{Text: "delete", iconcls: "BTN-del", scope: This, Handler: function () {var F = This. centerpanel; var d = f. getselectionmodel (). getselections (); If (D. length = 0) {Ext. UX. toast. MSG ("info", "select the record to delete! "); Return;} var G = array (); For (var e = 0; e <D. length; e ++) {G. push (d [e]. data. dicid);} Ext. MSG. confirm ("confirm information", "Are you sure you want to delete the selected records? ", Function (h) {If (H =" yes ") {Ext. getbody (). mask ("Please wait. Deleting... "," x-mask-loading "); Ext. ajax. request ({URL: _ ctxpath + "/system/multideldictionary. action ", Params: {IDs: g}, method:" Post ", success: function (I, j) {Ext. getbody (). unmask (); Ext. UX. toast. MSG ("operation information", "This numeric dictionary is deleted successfully! "); F. getstore (). reload () ;}, failure: function (I, j) {Ext. getbody (). unmask (); Ext. UX. toast. MSG ("operation information", "Operation error. Please contact the administrator! ");}});}});}},
Method 2: (marked with red)
VaR mymask = new Ext. loadmask (ext. getbody (), {MSG: 'is being saved. Please wait! ', Removemask: True // removed after completion}); mymask. Show (); Ext. Ajax. Request ({URL: 'infoplatform/togbuy! Publish. action ', waitmsg:' is releasing... ', scope: This, success: function (F, O) {mymask. hide (); app. setalert (true, "test") ;}, failure: function (F, O) {mymask. hide (); app. setalert (false, "test ");}