listeners:{
"click":function(){
Ext.getCmp("formtext").getForm().submit({
waitMsg : '正在发送请求......',
url : 'data/GetData.aspx?param=GetFormData',
success : function(_response,_config){
alert(_response.url);
Ext.MessageBox.alert("result", _config.result.msg);
},
failure: function(_response,_config){
switch (_config.failureType) {
case Ext.form.Action.CLIENT_INVALID :
Ext.Msg.alert('错误!', '存在未通过验证的数据!');
break;
case Ext.form.Action.CONNECT_FAILURE :
Ext.Msg.alert('错误!', '连接错误!');
break;
case Ext.form.Action.SERVER_INVALID :
Ext.Msg.alert('错误!', action.result.msg);
}
},
method:'POST'
});
}
}
直接提交的话 是没有问题的 可以进后台获取到传过来的数据 但是我页面有个 textarea 和 htmleditor 只要在输入内容中有换行 就不进后台 直接跳出 Ext.Msg.alert('错误!', '连接错误!'); 也没有 出现脚本错误 求解
"click":function(){
Ext.getCmp("formtext").getForm().submit({
waitMsg : '正在发送请求......',
url : 'data/GetData.aspx?param=GetFormData',
success : function(_response,_config){
alert(_response.url);
Ext.MessageBox.alert("result", _config.result.msg);
},
failure: function(_response,_config){
switch (_config.failureType) {
case Ext.form.Action.CLIENT_INVALID :
Ext.Msg.alert('错误!', '存在未通过验证的数据!');
break;
case Ext.form.Action.CONNECT_FAILURE :
Ext.Msg.alert('错误!', '连接错误!');
break;
case Ext.form.Action.SERVER_INVALID :
Ext.Msg.alert('错误!', action.result.msg);
}
},
method:'POST'
});
}
}
直接提交的话 是没有问题的 可以进后台获取到传过来的数据 但是我页面有个 textarea 和 htmleditor 只要在输入内容中有换行 就不进后台 直接跳出 Ext.Msg.alert('错误!', '连接错误!'); 也没有 出现脚本错误 求解
解决方案 »
- 探讨一下JS对象实现继承的办法
- jquery在IE和firefox中
- 关于DHTML的getElementById问题
- js实现的可以拖动的对话框,但html的声明写成这样就拖不了了!!急!!请教高手!!在线等!!
- 请问javascript的节点问题?
- document.write中显示问题?
- 点击列中的内容
- 立即送分:几个select控件,name属性相同,如何知道用户操作激发了其中一个select的onchange()事件呢?我一定要知道是哪个select,如何实
- window.open怎样把打开窗口设置为最大化?
- 怎么样判断窗口是被关闭了而不是被unload了??
- Jquery里报undefined错误
- 找个能自定义显示和排版的天气预报接口,有人推荐下么?
var value = editForm.findById('textarea').getValue();
var newvalue = value.replace(/ <br([^>]?)>/g, '\r\n');
editForm.findById('textarea').setValue(newvalue);
//这样只能解决换行问题