处理ASP.NET"正在中止线程"错误
2008-03-28 16:40
513 查看
Ext2.0 form 提交后,在firedebug中跟踪,发现确实提交完毕,而且action.response.statusText=='OK',但是Ext仍然认为是提交失败。那么,问题处在那里呢?原来提交后,ext默认认为放回的是JSON格式的数据,且格式为 {success:true, data:age=567} ,第一个必须是success:true,否则认为放回无效数据。
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
Ext.onReady(function()...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// Required if showing validation messages
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.QuickTips.init();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
var simpleForm = new Ext.FormPanel(...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
labelAlign: 'left',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
title: '表单例子',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
buttonAlign:'right',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
bodyStyle:'padding:5px',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
width: 300,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
frame:true,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
labelWidth:45,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
layout:'column', //定义该元素为布局为列布局方式
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
border:false,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
labelSeparator:':',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items:[...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
columnWidth:.5, //
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
layout: 'form',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
border:false,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
cls : 'key',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
xtype:'textfield',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
fieldLabel: '用户名',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
name: 'name',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anchor:'90%'
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
},...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
columnWidth:.5,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
layout: 'form',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
border:false,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
cls : 'key',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
xtype:'textfield',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
inputType:'password',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
fieldLabel: '口令',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
name: 'passwd',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anchor:'90%'
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}],
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
buttons: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
text: '保存',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
handler:function()...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
try...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 执行当前表单面板的submit
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
simpleForm.form.submit( ...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 动作发生期间显示的文本信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
waitMsg : '正在登录......',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// submit发生时指向的地址
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
url : 'test.jsp',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 表单提交方式
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
method : 'POST',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 数据验证通过时发生的动作
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
success: fsuccess,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
failure:ferror
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
});
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
}catch( e)...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.Msg.alert("error",e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
},...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
text: '取消',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
handler:function()...{simpleForm.form.reset();}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
});
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
simpleForm.render(document.body);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
});
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
function fsuccess(form, action)...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.Msg.alert('成功', action.result.data);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
function ferror(form,action)...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//这里命名是OK啊,原来是要求server放回JSON格式数据,且格式为:{success:true, data:age=567}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
if(action.response.statusText == 'OK')...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
fsuccess(form, action);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
return;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
form.reset();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.Msg.alert('失败了,为啥',''+action.failureType + ':' +action.response.responseText);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
from:http://blog.csdn.net/winderain/
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
Ext.onReady(function()...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// Required if showing validation messages
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.QuickTips.init();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
var simpleForm = new Ext.FormPanel(...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
labelAlign: 'left',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
title: '表单例子',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
buttonAlign:'right',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
bodyStyle:'padding:5px',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
width: 300,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
frame:true,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
labelWidth:45,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
layout:'column', //定义该元素为布局为列布局方式
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
border:false,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
labelSeparator:':',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items:[...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
columnWidth:.5, //
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
layout: 'form',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
border:false,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
cls : 'key',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
xtype:'textfield',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
fieldLabel: '用户名',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
name: 'name',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anchor:'90%'
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
},...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
columnWidth:.5,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
layout: 'form',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
border:false,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
items: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
cls : 'key',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
xtype:'textfield',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
inputType:'password',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
fieldLabel: '口令',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
name: 'passwd',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anchor:'90%'
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}],
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
buttons: [...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
text: '保存',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
handler:function()...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
try...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 执行当前表单面板的submit
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
simpleForm.form.submit( ...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 动作发生期间显示的文本信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
waitMsg : '正在登录......',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// submit发生时指向的地址
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
url : 'test.jsp',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 表单提交方式
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
method : 'POST',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// 数据验证通过时发生的动作
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
success: fsuccess,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
failure:ferror
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
});
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
}catch( e)...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.Msg.alert("error",e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
},...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
text: '取消',
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
handler:function()...{simpleForm.form.reset();}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
});
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
simpleForm.render(document.body);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
});
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
function fsuccess(form, action)...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.Msg.alert('成功', action.result.data);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
function ferror(form,action)...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//这里命名是OK啊,原来是要求server放回JSON格式数据,且格式为:{success:true, data:age=567}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
if(action.response.statusText == 'OK')...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
fsuccess(form, action);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
return;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
form.reset();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Ext.Msg.alert('失败了,为啥',''+action.failureType + ':' +action.response.responseText);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
from:http://blog.csdn.net/winderain/
相关文章推荐
- ASP.NET"正在中止线程"错误原因
- ASP.NET"正在中止线程"错误原因
- ASP.NET "正在中止线程"错误原因
- ASP.NET"mscorlib:正在中止线程"错误原因
- ASP.NET"正在中止线程"错误原因
- ASP.NET"正在中止线程"错误原因
- ASP.NET"正在中止线程"错误原及解决方法
- ASP.Net发布到IIS中出现错误: 处理程序"PageHandlerFactory-Integrated"在其模块列表中有一个错误模块"ManagedPipelineHandler"
- 对"ASP.NET的错误类型及错误处理方式"的补充
- C# 导出Excel "正在中止线程" 错误
- ASP.NET"正在中止线程"错误原因
- ASP.NET"正在中止线程"错误原因
- ASP.NET"正在中止线程"错误原因
- Asp.net中"正在中止线程"错误解决方法
- ASP.NET"正在中止线程"错误原因
- ASP.NET "正在中止线程"错误原因及解决方法【转】
- ASP.NET"正在中止线程"错误原因
- ASP.NET"正在中止线程"错误原因
- asp.net访问access 发生了未处理的异常 "操作必须使用一个可更新的查询"错误