求救 Extjs XmlReader的问题 ,请教了~~~~~~~!

mominghuan 玛尔仕 Web前端工程师  2009-12-01 03:46:15
在后台的服务器和firefox中都可以看到数据已经请求成功了。

可是我在前台显示的时候,没有得到数据。IE调试的时候报这样的错误“ 由于出现错误 c00ce56e 而导致此项操作无法完成。”
我是在google app engine下调试的。

那位兄弟帮 我调试一下?

js文件如下:

systemformPanel = Ext.extend(Ext.form.FormPanel,{

_record : new Ext.data.Record.create(["name" , "address" ,"email","phone"]),

_store : new Ext.data.Store({
autoLoad:true,
//proxy:new Ext.data.HttpProxy({url:'http://localhost:8080/xml'}),
url:"http://localhost:8080/xml",
reader:new Ext.data.XmlReader({record:"person",id:'name'} ,this._record)
}),

constructor:function(){

systemformPanel.superclass.constructor.call(this, {
renderTo:Ext.getBody(),
frame:true,
width:392,
height:125,
title:'XmlReader Test',
labelAlign:'right',
store:this._store,
items:[{
layout:'column',
items:[{
columnWidth:.5,
layout:'form',
labelWidth:60,
items:[{
xtype:'textfield',
fieldLabel:'Name',
dataIndex:'name',
name:'name',
anchor:'95%'
},{
xtype:'textfield',
fieldLabel:'Address',
name:'address',
dataIndex:'address',
anchor:'95%'
}]
},{
columnWidth:.5,
layout:'form',
labelWidth:60,
items:[{
xtype:'textfield',
vtype:'email',
fieldLabel:'Email',
name:'email',
dataIndex:'email',
anchor:'95%'
},{
xtype:'textfield',
fieldLabel:'Phone',
name:'phone',
dataIndex:'phone',
anchor:'95%'
}]
}]
}],
buttons:[{

text:'OK',
handler:this.onSubmitClick,
scope:this,
},{
text:'Rest',
}]

});
/*this._store.on("load",function(obj){
alert(obj.getCount());
})
this._store.load();*/
},
onSubmitClick:function(){
alert(this._store.getCount());
},
setValues:function(){

},
});



xml文件如下:

<?xml version="1.0" encoding="utf-8"?>
<dataset>
<person>
<name>AAAAAA</name>
<address>BBBBBBB</address>
<email>ggggg@163.com</email>
<phone>jglhjkhfjklhgfg</phone>
</person>
</dataset>



html如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<h1><title>XmlReader Test</title></h1>

<link rel="stylesheet" type="text/css" href="/js/ext/resources/css/ext-all.css" />
<script type="text/javascript" src="/js/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/js/ext/ext-all.js"></script>
<script type="text/javascript" src="/js/test.js" charset='utf8'></script>

<script type="text/javascript">
Ext.onReady(function(){
var _formPanel = new systemformPanel();
});

</script>


</head>
<body></body>
</html>
...全文
90 点赞 收藏 3
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
hoojo 2010-05-26
用simpleStore行不
回复
pinkxz0420 2010-05-25
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="utf-8"%>
回复
sean1203 2009-12-15
不是没人回答,只是没人知道
回复
相关推荐
发帖
Ajax
创建于2007-09-28

5.2w+

社区成员

Web 开发 Ajax
申请成为版主
帖子事件
创建了帖子
2009-12-01 03:46
社区公告
暂无公告