Maybe you have already used a PPR (Partial Page Rendering) report, by setting the “Report Template” property to “template: 7. Standard (PPR)”.
If you put the code into the onload event or in the footer of the page, it will fire the first time when the page is rendered, but not when just the report content is refreshed with the AJAX call.
It also doesn’t help to put the code into the header or footer region of the report, because that part isn’t refreshed by the partial page rendering, just the content.
If you have read one of my previous posting about Auto Refresh Flash Charts, then you probably already know how it can work.
Put the following example code into the “Region Header” of your report
to be called each time the report content is displayed. I have also created a working example where you can try it out.