52,797
社区成员
发帖
与我相关
我的任务
分享
form_copy.getForm().submit({
waitMsg :'Copy is progressing!',
waitTitle :"Please wait until the progress bar end!",
success:function(f,a){
var msg=a.result.msg;
Ext.Msg.alert('Copy Result',msg);
},
failure:function(f,a){
if(a.failureType==Ext.form.Action.SERVER_INVALID){
Ext.Msg.alert(a.result.errors.title,a.result.errormsg);
}
if(a.failureType==Ext.form.Action.CONNECT_FAILURE){
Ext.Msg.alert('Failure','Server reported:'+a.response.status+' '+a.response.statusText);
}
}
});
echo "{success:true,msg:'$msg'}";
{ success:false, errors:{ title:"project exist" }, errormsg:"The project has existed in the database.
Please input another project name!" }
echo "{success:true,msg:'$msg'}";