最近学习EXTJS遇到了令人困惑的问题

jsp页面中导入的代码 href="extjs/resources/css/ext-all.css" />


src="extjs/source/locale/ext-lang-zh-CN.js">
src="extjs/adapter/prototype/prototype.js">
js代码[code="java"]
Ext.onReady(function(){
var test=new Ext.form.FormPanel({
title:'test',
frame:true,
renderTo:'test',
hideLabels:true,
width:100,
items:[
{fieldLabel:'a'}
],
buttons:[
{text:'按钮',handler:function(){
Ext.lib.Ajax.request(
'post',
'service?method=tijiao',
{
success:function(response){
Ext.MessageBox.alert('信息','成功');
},
failure:function(response){
Ext.MessageBox.alert('信息','失败');
}
}
);
}}
]
});

});
[/code]
servlet中的代码: response.getWriter().print("{success:true,msg:'成功'}");
能够将请求提交到servlet,但是执行完alt语句之后出现一个 “'this.el' 为空或不是对象” 的错误,由于是自学,希望知道的朋友们进行讲解,用的是遨游2.5.12浏览器。

[code="html"]

[/code]
把这两个去掉看看。

我试过,没有出现你说的问题,在Firefox , IE 6测试没问题。
[quote]
但是执行完alt语句之后出现一个 “'this.el' 为空或不是对象” 的错误
[/quote]
既然执行了第一个alert,那说明请求返回正常,后面没有代码执行了。不应该出现“this.el”为空。