zoukankan      html  css  js  c++  java
  • Ext.Ajax.request提交实现waitMsg效果

    最近用ExtJs开发过程中,需要使用到等待后台调用cgi执行结束后才做其他操作。。。

    本以为需要一个弹窗提示应用成功,但是Ext本身就有一个这样的wait效果,

    onApply: function(){ 

      var myMask = new Ext.LoadMask(Ext.getBody(),{msg:"正在应用,请稍后......"});
      myMask.show();
      Ext.Ajax.request({ 

      url: '.........',
      params: {
        param1: 0,
        param2: 1
      },
      method: 'POST',
      success: function(r) {
        var t = Ext.decode(r.responseText);
        if (t.success) {
        me.close();
        window.location.href = '/index.htm';
        }else{
          Ext.MessageBox.alert("............");
        }
      },
      failure: function(form, action){
        Ext.MessageBox.alert(".......");
      },
      scope: this

      });

    }

  • 相关阅读:
    YL杯超级篮球赛 (Standard IO)
    Window (Standard IO)
    toj1026 Network 双连通分量
    poj3177 Redundant Paths 双连通分量
    poj1144 Network 双连通分量
    bzoj1269
    bzoj1800
    CF911D
    CF910C
    CF910B
  • 原文地址:https://www.cnblogs.com/sunscheung/p/4359503.html
Copyright © 2011-2022 走看看