您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

实现waitMsg等待提示效果的实例代码

2026/1/22 12:41:21发布24次查看
一、  fp.form.submit 有waitmsg 属性来设置等待效果,如下。但是对于ext.ajax.request来说 waitmsg 并不起作用。     
               fp.form.submit({
url : '',
waittitle : [性别]修改,
                           waitmsg : '正在提交数据,请稍后... ...',
                           success : function(form, action) {
                                     ext.messagebox.alert('提示信息',action.result.msg);
                           },
                           failure : function(form, action) {
                                ext.messagebox.alert('提示信息', 更新性别有误!);
}
               });
二、ext.ajax.request实现waitmsg等待提示效果
          ext.messagebox.confirm('message', '请问您确定要修改性别吗?', function(btn) {
                 if (btn == 'yes'){
                     var mymask = new ext.loadmask(ext.getbody(), { 
                         msg: '正在提交申请,请稍后!'
}); 
                     mymask.show();
                     ext.ajax.request({
                           url : '',
                           params : {
                                sex : sex
                                     },
                           success : function(response,option) {                                           
                                     var res = ext.decode(response.responsetext);
                                     if(res.success){
                                          mymask.hide();
ext.messagebox.alert('提示信息', res.msg);
                                     }else{
                                           mymask.hide();
                                           hs.util.msg('提示信息', res.msg);
                                     }          
                           },
                           failure : function(form, action) {
                                mymask.hide();
                                hs.util.msg('提示信息', response.msg);
                           }
                     });
                }
        });
以上就是实现waitmsg等待提示效果的实例代码的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product