码迷,mamicode.com
首页 > Web开发 > 详细

ExtJs 4中 Ext.Ajax.request提交实现waitMsg等待提示效果

时间:2014-10-24 16:02:21      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   os   ar   for   sp   文件   

//submitForm为form表单 
var myMask = new Ext.LoadMask(Ext.getBody(),{msg:"请稍等,正在导入..."}); 
myMask.show(); 
Ext.Ajax.request({ url:"uploadAction",
 method:"POST", 
params:{
 id:id 
}, 
success:function(){
if (myMask != undefined){ myMask.hide();}
Ext.Msg.alert("消息","文件导入成功!");
 }, 
failure:function(){
if (myMask != undefined){ myMask.hide();}
 Ext.Msg.alert("消息","文件导入失败!"); 
} 
}); 

 

ExtJs 4中 Ext.Ajax.request提交实现waitMsg等待提示效果

标签:style   blog   color   io   os   ar   for   sp   文件   

原文地址:http://www.cnblogs.com/pipicoming/p/4048491.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!