首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

Ext 的Ajax 请求,增添mask 等待效果

2012-11-20 
Ext 的Ajax 请求,添加mask 等待效果。今天在做 Ext.Ajax.request({})的觉得需要Mask遮挡的效果方法一 :(标

Ext 的Ajax 请求,添加mask 等待效果。

今天在做 Ext.Ajax.request({});的觉得需要Mask遮挡的效果


方法一 :(标红部分)

    var myMask = new Ext.LoadMask(Ext.getBody(), {                msg: '正在保存,请稍后!',                removeMask: true //完成后移除            });            myMask.show();              Ext.Ajax.request({                url : 'infoPlatform/TogBuy!publish.action',      waitMsg : '正在发布...',      scope : this,      success : function(f, o) {          myMask.hide();          App.setAlert(true, "test");      },      failure : function(f, o) {          myMask.hide();          App.setAlert(false, "test");      }  



热点排行