ext3 怎么提交表单

ext3 如何提交表单 - Web 开发 / Ajaxvar simple new Ext.FormPanel({labelWidth: 55,frame:true,title:

ext3 如何提交表单 - Web 开发 / Ajax
var simple = new Ext.FormPanel({
  labelWidth: 55,
  frame:true,
  title:'发送短消息',
  defaults: {width: (bodyWidth-85)},
  defaultType: 'textfield',
  items: [relid,title,
  pic,content],
  buttons: [{
  text: '发送',handler:doSave
  },{
  text: '返回',handler:goBack
  }]


function doSave()
{
  //我想提交到sms.jspx/method=send 这个地址里 ,之后就可以开始接收数据了的
  alert("下面怎么写呢?");
}

[解决办法]

JScript code
 function doSave(){var form =simple.form.submit();if (form.isValid()) {  form.submit( {     url : 'AddLevel.action',     success : function(from, action) {      //.....     },     failture : function(form, action){},     waitMsg : '正在保存数据,稍后...'})}alert(' 点的我');      }
[解决办法]
提交的方法是没错的。要不就是其它地方错了。注意看看。最好用firebug调试一下。