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

mominghuan 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>
...全文
111 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
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
  • 打赏
  • 举报
回复
不是没人回答,只是没人知道

52,797

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧