eagles9999 Report post Posted October 31, 2009 I use Fusion Charts in my app and display the chart in the MS Browser ActiveX Control. Under WinXP and IE7 not problem. Everything works fine. But now under Win7 and IE8 there is a problem. The first time I run the chart it displays properly. However, when I close the window I get a Script Error. The error dialog provides the Line Number and Character but I cannot find a way to view the source from the Active X. The html chart header file that is being opened on has 43 lines but the error says line 53. I assume it is referring to some line in the data xml file that it loads. When I call the html chart header directly in a Browser, no problem. But even then when I view the source, I can only see the html chart header file. Additionally, if I call the same program a second time, the displayed chart is garbled and all squashed up in the top left hand corner of the screen. I have scoured the net looking for a way to downgrade IE8 to IE7 but is seems it is not possible in Win7 to do that. I have also tried adding to html chart header file to no avail. I have tried using different ActiveX browsers to no avail. Also, the waiting button at the bottom of the screen that changes to Save when I generate an export no longer appears in IE8. Any ideas would be really appreciated? I have tried uninstalling Flash 10 and re-installing...No change. I have attached my html file (FUELUSAGE.txt) and my xml data file (FUELUSAGE.xml) These work fine in IE7. FUELUSAGE.txt FUELUSAGE.xml Share this post Link to post Share on other sites
eagles9999 Report post Posted November 1, 2009 Ok. Have gone some way to fixing this problem. If I change the history settings in IE8 to Check for newer version, every time I visit the webpage it works flawlessly. So it comes down to finding a way to clear the cache from an embedded MS Web Brower ActiveX control in my app. Any clues how that can be done. No Methods or Properties for it in the control. :-/ Cheers, Mark Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 2, 2009 Hi, can you please try once passing unique (every time unique) querystring values to all the URL that is getting loaded in the Web Browser Control? Share this post Link to post Share on other sites
eagles9999 Report post Posted November 2, 2009 Hi Sudipto, I have tried that to no avail. I think the problem is that I do not generate the html page every time I call. It is static and the only thing that changes is the data.xml file that it calls. myChart.setDataURL("FUELUSAGE.xml"); I think I need something the make the FUELUSAGE.xml above unique for each call but have no idea how to do that. Regards, Mark Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 3, 2009 Hi, Yes, that is eaxctly what i meant by "passing unique (every time unique) querystring values to all the URL ". myChart.setDataURL("FUELUSAGE.xml&nocache="+ new Date().valueOf() ); Share this post Link to post Share on other sites
eagles9999 Report post Posted November 3, 2009 (edited) Hi Sudipto, Thanx for the suggestion. However, it did not work. Still same symptoms as before. Please see attached images.... Screenshot 1 ---- Works fine Now run again... Screenshot 2 ---- Opens fine but then gives error on exit Now run again... Screenshot 3 ---- Image scrambled and compressed in the top left hand corner of the browser. Regards, Mark Edited November 3, 2009 by Guest Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 6, 2009 Hi, I apologize for my typo: Please check with this: myChart.setDataURL("FUELUSAGE.xml?nocache="+ new Date().valueOf() ); Share this post Link to post Share on other sites
ehart Report post Posted January 4, 2010 (edited) I am also have trouble with the caching of XML chart data, for IE and Firefox. I am using the object tag to embed the charts... The NOCACHE entry did not work for me, so I removed it here My XML file changes every 5 minutes, so I need my charts to read the new XML file. What is the best way to disable the flash cache and enforce a fresh chart everytime the page is viewed? Thank you and have a great day, Eric Edited January 4, 2010 by Guest Share this post Link to post Share on other sites
eagles9999 Report post Posted January 4, 2010 Hi Eric, I searched for months to find a solution to this problem. I am convinced the is some way to overcome it with code but I have not found it. THE ONLY WAY that I have been able to consistently fix it is by doing the following..... In IE Menu, Go to Tools / Internet Options In the Browsing History on the General Tab select Settings button. In that dialog the is a radio button group called... Check for newer versions of stored pages. Make sure you check "Every time I visit the webpage" You will find that it all works as expected then. Let me know if you find a more elegant solution. Cheers, Mark Share this post Link to post Share on other sites
Guest Madhumita Report post Posted January 5, 2010 Hello Eric, Could you please specify where in the object tag you are placing NOCACHE? Share this post Link to post Share on other sites
ehart Report post Posted January 5, 2010 Hi Madhumita, I am using the following; param name="FlashVars" value="&dataURL=Data.xml&nocache="+ new Date().valueOf())"&chartWidth=900&chartHeight=300" Thank you, Eric Madhumita (1/5/2010)Hello Eric, Could you please specify where in the object tag you are placing NOCACHE? Share this post Link to post Share on other sites
ehart Report post Posted January 5, 2010 Hi Mark, Thank you for the fix, however as I am sure your aware that only works in IE and not other OS's or browsers. Like yourself, I refuse to believe there is not a fix for this. I must be doing something wrong with the NOCACHE line?? Browsers I must support; Windows: IE 7, IE 8, Firefox MAC: Firefox, Safari Linux: Firefox, Opera I will keep in touch and let you as soon as I stumble across anything that is helpful... Have a great day, Eric eagles9999 (1/4/2010) I searched for months to find a solution to this problem. I am convinced the is some way to overcome it with code but I have not found it. Share this post Link to post Share on other sites
eagles9999 Report post Posted January 5, 2010 Thanx eChart. Likewise....I will let you know... Very frustrating! Cheers, Mark Share this post Link to post Share on other sites
Guest Madhumita Report post Posted January 6, 2010 Hello ehart, First of all, new Date().valueOf() is a JavaScript function which cannot be called from the html <object> or <embed> tags. Could you please tell us what method you are using to refresh the chart? Share this post Link to post Share on other sites
ehart Report post Posted January 7, 2010 Hi Guys, Since I am also using ColdFusion I was able to utilize the #getTickCount#. Here is the code that works for me... param name="FlashVars" value="&dataURL=chartxml/data2.xml?nocache=#GetTickCount()#&chartWidth=900&chartHeight=300" Thank you for your help, Eric Share this post Link to post Share on other sites
Guest Madhumita Report post Posted January 7, 2010 Hello ehart, Here is a suggestion. You can try it out if you wish to. You can use JavaScript embedding of FusionCharts to bypass such issues. ref. - http://www.fusioncharts.com/docs/Contents/JSEmbed.html Share this post Link to post Share on other sites