Ext.Ajax.request({
url:this.commitUrl,
params:this.commitParams,
success:function(response,options){
vardata=eval("("+response.responseText+")");
if(!data.success){
WebControl.showErrMsg(data.errMsg);
}
if(this.callBackFn){
this.callBackFn(data.data,data.success);
}
}.createDelegate(this),
failure:function(response,options){
switch(response.status){
case"403":
WebControl.showErrMsg("您无权访问您所请求的链接!");
break;
case"404":
WebControl.showErrMsg("您所请求的链接不存在!");
break;
case"500":
WebControl.showErrMsg(response.responseText);
break;
case"0":
WebControl.showErrMsg("服务器连接失败,请稍候重试!");
break;
default:
if(response.responseText!=""){
WebControl.showErrMsg(response.responseText);
}else{
WebControl.showErrMsg("系统出现未知错误,请重新登录系统后重试!");
}
break;
}
}.createDelegate(this)
});