网络调查展示页面

附件中,有我想要的结果和我现在运行的结果
我用的是EXT3.0,我的action已经通过测试了,结果是没有问题的,意思就是前台页面的问题
js代码
[align=left]showAnswerRuselt = function()
{
var answer_sto = new Ext.data.JsonStore({
url:'sub/infopublic/answerShow!showAnswerRuselt.action',
root:'answerRecord',
autoLoad:true,
fields:['answerCon','percentage','count']
});//数据存储在这里结束
var pan = new Ext.Panel({
width: 600,
height: 400,
items: {
xtype: 'stackedbarchart',
store: answer_sto,
yField: 'answerCon',
series: [{
xField: 'percentage',
displayName: 'percentage'
}]
}
});
var _win = new Ext.Window({
title: "添加",
layout: "form",
width: 500,
height :300,
plain: true,
resizable: false,
draggable : false,
items: [pan]
});//添加弹出窗口在这里完成
_win.show();

}[/align]

[b]问题补充:[/b]
1.我查看了有数据哈
是前面页面的问题
我也运行了他自带的例子,也是没有结果的
[b]问题补充:[/b]
加上了你的话,但是报:
Warning: Cannot establish communication between YUI Charts and JavaScript. YUI Charts must be served from HTTP and cannot be viewed locally with file:/// protocol unless location is trusted by Flash Player.

是不是flash播放器的问题???

[b]问题补充:[/b]
老大说我杀鸡用牛刀,换进度条
猪神,我要死了

[quote]加上了你的话,但是报:
Warning: Cannot establish communication between YUI Charts and JavaScript. YUI Charts must be served from HTTP and cannot be viewed locally with file:/// protocol unless location is trusted by Flash Player.

是不是flash播放器的问题??? [/quote]

你要放在web容器里面运行.... ext chart是不能在本地运行的.

1.在store的load事件里面检查下store.getCount()是否有数据
2.用firebug看下你的ajax请求的response的json

给个截图看看.

另外,要设置下chart的本地地址,你修改下
{
xtype:'stackedbarchart',
url: '/js/extjs/3.0/resources/charts.swf',

楼主可以在你的Action中执行方法里面打印收到的数据,以及要返回的数据JSON数据,看看是否正确?

如果正确,就可以确保是前台页面的问题,然后在细查。

首先通过执行该前台页面,请求能不能达到你的action,如果不能到达,那应该是[color=red]url:'sub/infopublic/answerShow!showAnswerRuselt.action',[/color]
的问题。

如果在action执行后,在返回之前,能够看到打印出俩的数据,那就说明是前台接收数据部分的问题