Adis Corovic

Refreshing data in Internet Explorer

Recommended Posts

Hi all,

Although I thought that I could solve this problem easy, I just cannot find the suitable solution for me.

My situation: I have a tool that generates the XML file I need.

In a HTMl file I use an object instead of an iframe to show the chart:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" BORDER="0" WIDTH="750" HEIGHT="500" id="FC_2_3_Column3D">

  <PARAM NAME=movie VALUE="../FusionCharts/AngularGauge.swf">

  <PARAM NAME="FlashVars" VALUE="&dataURL=../Data/backlog.xml&chartWidth=750&chartHeight=500">

  <PARAM NAME=quality VALUE=high>

  <PARAM NAME=bgcolor VALUE=#FFFFFF>

</OBJECT>

This works fine for me but I have a refresh problem.. So IE is chaching the data so my charts are not real time..

Could someone please advise..

Share this post


Link to post
Share on other sites

...

Greetings,

In general, realtime charts do not have any caching issue as the browser is not involved much while fetching data.

I hope you are using the correct method for loading real-time charts as specified at FusionWidget documentation (http://www.fusioncharts.com/widgets/docs/) section: "Data Streaming Charts > Creating a simple example." http://www.fusioncharts.com/widgets/docs/Contents/DSC_Example.html :)

If your problem persists even after implementing the real-time charts in the above-mentioned way, then send us a working sample of your code and we will look into it.

Edited by Guest

Share this post


Link to post
Share on other sites

Hi Shamasis,

(sorry for my late reply, I was out of office for a while)...My situation is as follow:

I create the XML file (the XML is correct) directly uit a SQL database. The XML file is located in C:Dashboardsdata. Furthermore I have a HTMl file and in the HTML I am using an object to show the data. This is according to FusionCarts documentation: http://www.fusioncharts.com/widgets/docs/Contents/HTMLEmbed.html

The XML file (with 7 records of pure data, so the output is 7 bars) is refreshing with a refresh rate of 5 seconds. So sometimes i see that the Internet Explorer is showing 'old' information. Did your ever had to deal with a refresh problem when embedding FusionCharts in HTML pages? What do you suggest me to do?

I provided an example that i use in the attachment..

Thanks for your help.

Chart.zip

Share this post


Link to post
Share on other sites

Hi Rajroop,

Still no succes with the addition ?nocache="+ new Date().valueOf(), it keeps caching all the time...

Example: when I change the XML and hit refresh 10 times, 6 times i get the 'old' value.

The HTML files and XML data is located on a server and I approach it trough HTTP:Servernamesiteame.html

Any other suggestions? Can you help me realtime, using TeamViewer or another program?

regards,

adis

Share this post


Link to post
Share on other sites

...

 

Just a queer question: Why are you using the HTML-Embed method? We highly recommend using the JavaScript integration method: http://www.fusioncharts.com/docs/?JSEmbed.html

 

 

 

I understand that this is not a direct solution to your problem, but as because your issue is pretty unique, why don't you just implement the JS integration method and see the result?

 

 

 

Furthermore, is there any caching issue in FireFox? And also, is it happening when you are running the HTML file locally? What happens when you run it from a server?

Share this post


Link to post
Share on other sites

Hi Shamasis,

I did not try the JScript to embed the chart. Locally and on a server I face the same caching issues. So I will try it with JScript... thanks for the hopefully best answer ;-)...

Why I did not try JScript? :)

Regards,

Adis

Share this post


Link to post
Share on other sites
Guest Madhumita

Hey,

 

 

 

Do let us know how you go on about it.

 

 

 

It was a pleasure helping you.

 

Do revert incase of further queries on this.

Share this post


Link to post
Share on other sites

HI,

Now we have changed de dashboards and now i use this:

 
  <div id="dashboard">
 <script type="text/javascript">
 var myChart1 = new FusionCharts("../FusionCharts/CHARTNAME", "myChart1Id", "1500", "800", "0", "0");
 myChart1.setDataURL("../Data/XMLFILE");
 myChart1.render("dashboard");
 </script>
 </div>

and this works fine. Thanks for your help and sorry for my late reaction.:cool:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now