日期:2014-05-16 浏览次数:20615 次
f.getForm().submit({ url:"......", params:{ XX:xx .....} success: function (c,v,e) { //e: 触发事件 var json=Ext.decode(v.response.responseText); }, failure:function(c,v,e){} })
Ext.Ajax.request({ url:"....", params:{XX:xx....}, success: function (v,c) { var json=Ext.decode(v.responseText); }, failure:function(v,c){} })
var G = new Ext.form.FormPanel({}) G.getForm().submit({//客户端的数据提交给服务器 url:wayfoon.MMS.DataPage +'/ext2Upload.action', //waitMsg:"正在提交表单数据,请稍候。。。。。。", failure:function(form, action){ Ext.MessageBox.alert('警告', action.result.errors); }, success: function(form, action){ Ext.MessageBox.alert('信息', action.result.msg); } });
Ext.Ajax.request({ url:wayfoon.MMS.DataPage+'/cpSMS.action?action=submitSMS', method:'POST', params:'id='+id, success:function(form,action){ var obj = Ext.util.JSON.decode(form.responseText); if(obj.success==true) { Ext.Msg.alert('提示',obj.msg); ds.reload(); } else { //Ext.Msg.alert('提示',obj.errors); Ext.Msg.alert('提示',obj.msg); } }, failure:function(form,action){ Ext.Msg.alert('警告','系统错误'); } });