ext提交,很简单的问题,哪位耐心人士帮帮看看
//添加用户的窗口
function toadd() {
var addwin = new Ext.Window( {
width : 500,
height : 300,
title : '添加信息',
collapsible : true,
plain : true,
modal : true
});
//添加用户的表单
var addform = new Ext.form.FormPanel( {
layout : 'form',
id : 'add_form',
buttonAlign : 'center',
labelAlign : 'right',
region : 'center',
defaultType : 'textfield',
items : [ {
name : 'terminal_id',
fieldLabel : '终端编号',
width : 180,
allowBlank : false,
blankText : '终端编号不能为空' //错误信息提示
}, {
name : 'terminal_type',
fieldLabel : '终端类型',
width : 180,
allowBlank : false,
blankText : '终端类型不能为空'
}, {
name : 'is_controllable',
id : 'is_controllable',
fieldLabel : '是否可控制',
xtype : 'combo',
triggerAction : 'all',
store : [ [ '1', '是' ], [ '0', '否' ] ],
width : 80,
editable : false,
emptyText : '请选择'
}, {
name : 'is_shuttable',
id : 'is_shuttable',
fieldLabel : '是否可跳闸',
xtype : 'combo',
triggerAction : 'all',
store : [ [ '1', '是' ], [ '0', '否' ] ],
width : 80,
editable : false,
emptyText : '请选择'
}, {
name : 'is_readdable',
id : 'is_readdable',
fieldLabel : '是否可读表',
xtype : 'combo',
triggerAction : 'all',
store : [ [ '1', '是' ], [ '0', '否' ] ],
width : 80,
editable : false,
emptyText : '请选择'
}, {
name : 'charge_person',
fieldLabel : '负责人',
width : 180,
allowBlank : false,
blankText : '负责人不能为空'
}, {
name : 'active_time',
fieldLabel : '投运日期',
width : 140,
xtype : 'datefield',
format : 'Y-m-d'
}, {
name : 'is_active',
id : 'is_active',
fieldLabel : '是否有效',
xtype : 'combo',
triggerAction : 'all',
store : [ [ '1', '是' ], [ '0', '否' ] ],
width : 80,
editable : false,
emptyText : '请选择'
} ],
buttons : [ {
text : '确定',
type : 'submit',
handler : function() {
if (addform.form.isValid()) {
addform.form.doAction('submit', {
url : 'donew.do',
method : 'POST',
success : function(form, action) {
addwin.hide();
Ext.Msg.alert('系统信息',
action.result.data);
ds.reload();
},
failure : function(form, action) {
Ext.Msg.alert('系统信息',
action.resultldata);
ds.reload();
addwin.hide();
}
});
}
}
} ]
});
addwin.add( {
items : addform
});
addwin.show();
}
问题:点提交的时候ie浏览器报语法错误,请哪位高手帮忙看看是哪里错了