Chinaunix首页 | 论坛 | 博客
  • 博客访问: 30480031
  • 博文数量: 708
  • 博客积分: 12163
  • 博客等级: 上将
  • 技术积分: 8240
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-04 20:59
文章分类

全部博文(708)

分类:

2009-06-05 10:09:13

现在在做使用Java生成xml数据文件给amCharts,在浏览器中显示统计图表,遇到如下问题:
在同一个浏览器中(即session中)刷新页面,但是生成的数据却不能及时显示,但是,新开一个浏览器就可以。在官方网站发现如下的解释:

One of the most frequent complains is: "I changed the data/settings but nothing happend". Most likely your data or settings file is cached by the browser. If your data doesn't change frequently, you could simply clear your browser cache (delete temporary internet files) every time you encounter this problem.

If this is a problem that you run into often, you can disable data caching in the settings file:

>true>

This will force the browser to reload your data every time you refresh the web page.

There is no such function for the settings, however. If you need your settings to be reloaded every time, you can easily add a time stamp to your settings file name. Here is an example in PHP:

so.addVariable("settings_file", "settings.xml?");
 
这个是一个php的例子,但是我们只用第一个,设置setting file的属性就可以,即:
>true>
 
继续,下一个。。。
阅读(2609) | 评论(0) | 转发(0) |
0

上一篇:关于领导的爱好

下一篇:Web图表生成

给主人留下些什么吧!~~