问题描述
我在这里有一个奇怪的问题。基本上它只发生在IE中。 Safari浏览器,Firefox和Opera工作得很好。仅供参考,我正在使用XMLCharts()显示图表数据。基本上我有一个库,可以根据选定的日期范围即时生成最新的数据。那么,无论出于何种原因,IE在更改日期范围后拒绝显示更新后的图表。我已经确认服务器实际上是在后台生成更新的数据(因为我可以看到输出的原始数据文件),但IE似乎缓存先前的Flash图表而不是显示一个新的。 p>
为了记录,我保持图表名称在刷新之间相同,所以这可能是IE问题的一部分。尽管如此,其他浏览器刷新并显示最新的信息,我不知道为什么IE浏览器不显示与更新的数据图表。
有任何想法吗?我可以强制刷新一下吗?
Best。
我不知道这个库,但是大多数flash图表库使用XML或JSON数据文件,并通过http请求加载它们。尝试向数据文件的url添加一个随机参数,例如:而不是/data.xml尝试/data.xml?tmp=327932423487
I've got a bit of an odd issue here. Basically it only occurs in IE. Safari, Firefox, and Opera work just fine.
FYI, I am using XMLCharts (http://www.maani.us/xml_charts/) to display chart data. Basically I have a library that generates up-to-the-minute data on the fly based on selected date ranges. Well, for whatever reason, IE refuses to show the updated chart after changing the date range. I've confirmed that the server is actually generating the renewed data in the background (as I can see the raw data file that is output), but IE seems to cache the previous Flash chart for display instead of displaying a fresh one.
For the record, I am keeping the name of the chart the same between refreshes, so that may be part of the IE issue. Still, the other browsers refresh and show up-to-date info as necessary, I'm not sure why IE doesn't display the chart with the updated data.
Any ideas? Can I force a refresh of some sort?
Best.
I don't know the library, but most of the flash charts libraries use an XML or JSON data file, and loading them trough http request. Try adding a random parameter to the url of the data file, for example: instead of "/data.xml" try "/data.xml?tmp=327932423487"
这篇关于(Rails,Flash)为什么我更新的Flash图表不能在Internet Explorer中刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!