-
-
-
-
-
-
-
-
-
-
-
- functionsaveUser_ajaxSubmit1(){
- Ext.Ajax.request({
- url:'user_save.action',
- method:'post',
- params:{
- userName:document.getElementById('userName').value,92); line-height:18px"> password:document.getElementById('password').value
- },
- success:function(response,options){
- varo=Ext.util.JSON.decode(response.responseText);
- alert(o.msg);
- failure:function(){
- }
- });
-
-
-
-
-
-
-
- functionsaveUser_ajaxSubmit2(){
- Ext.Ajax.request({
- url:'user_save.action',92); line-height:18px"> method:'post',255); line-height:18px"> form:'userForm',
-
-
-
- functionsaveUser_ajaxSubmit3(){
-
- varformPanel=newExt.FormPanel({
- labelWidth:75,255); line-height:18px"> frame:true,92); line-height:18px"> bodyStyle:'padding:5px5px0',255); line-height:18px"> width:350,92); line-height:18px"> defaults:{
- width:230
- },
- defaultType:'textfield',92); line-height:18px"> items:[{
- fieldLabel:'用户名',92); line-height:18px"> name:'userName',255); line-height:18px"> allowBlank:false
- fieldLabel:'密码',92); line-height:18px"> name:'password'
- }]
-
- varwin=newExt.Window({
- title:'添加用户',92); line-height:18px"> layout:'fit',255); line-height:18px"> width:500,92); line-height:18px"> height:300,255); line-height:18px"> closeAction:'close',92); line-height:18px"> closable:false,255); line-height:18px"> plain:true,92); line-height:18px"> items:formPanel,255); line-height:18px"> buttons:[{
- text:'确定',255); line-height:18px"> handler:function(){
- varform=formPanel.getForm();
- varuserName=form.findField('userName').getValue().trim();
- varpassword=form.findField('password').getValue().trim();
- if(!userName){
- alert('用户名不能为空');
- return;
- }
- if(!password){
- alert('密码不能为空');
- form.submit({
- waitTitle:'请稍后...',255); line-height:18px"> waitMsg:'正在保存用户信息,请稍后...',92); line-height:18px"> success:function(form,action){
- alert(action.result.msg);
- failure:function(form,action){
- alert(action.result.msg);
- text:'取消',92); line-height:18px"> handler:function(){
- win.close();
- win.show();
-
-
-
- functionsaveUser_ajaxSubmit4(){
- newExt.form.BasicForm('userForm').submit({
- }
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|