- Ext.Ajax并不是一个类,而是一个对象,因此,我们不用实例化它; @H_404_2@
- Ext.Ajax有个很重要的方法:requeset(),这个方法是实现ajax的前提和基础; @H_404_2@
- Extjs自身已经实现了ajax异步传输机制,代码如下: @H_404_2@
- Ext.Ajax.request({ @H_404_2@
- url : Global_Path + '/manage/flow/operauth/modifyname.do?method=approval',@H_404_2@
- method : 'post',@H_404_2@
- params : { @H_404_2@
- approval : Ext.encode(histroyForm.getForm().getValues()) @H_404_2@
- },@H_404_2@
- success : function(response,opts) { @H_404_2@
- var retMsg = Ext.decode(response.responseText); @H_404_2@
- if ('true' == retMsg.__msg){ @H_404_2@
- Ext.Msg.alert('消息','审批成功!',function(){ @H_404_2@
- centerPanel.getLayout().setActiveItem(0); @H_404_2@
- centerGrid.getStore().reload(); @H_404_2@
- }); @H_404_2@
- } else { @H_404_2@
- Ext.Msg.alert('消息','审批失败,请联系管理员!'); @H_404_2@
- } @H_404_2@
- },@H_404_2@
- failure : function(response,opts) { @H_404_2@
- Ext.Msg.alert('消息','审批失败,请联系管理员!'); @H_404_2@
- } @H_404_2@
- }); @H_404_2@