0

i am using jfree chart to generate pie chart dynamically, but i have problem. When i need to show output on IE6, the chart is not getting refreshed. i need to close the and reopen the browser and then input new value

Can anyone suggest what could be solution for the above problem?

Adam
  • 3,326
  • 7
  • 41
  • 75
user654761
  • 137
  • 3
  • 15
  • possible duplicate of [How to use writeChartAsPNG in JSP?](http://stackoverflow.com/questions/5496411/how-to-use-writechartaspng-in-jsp) – trashgod Apr 01 '11 at 01:32
  • That one specifies how to write it initially, which the OP seems to have accomplished. – Adam Apr 04 '11 at 19:14

1 Answers1

1

It sounds like you are having caching issues. I assume your chart is loaded from an image tag. If the address for the image tag is the same then IE will cache the image to speed up future loads. There are several general methods to prevent this.

how to clear or replace a cached image

Disable cache for some images

Also note that the image won't change without some type of new request, be it a page refresh or some type of AJAX polling. W3 Schools Info

Community
  • 1
  • 1
Adam
  • 3,326
  • 7
  • 41
  • 75