XML refresh
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



XML refresh Expand / Collapse
Author
Message
Posted 11/9/2007 12:29:13 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/9/2007 12:26:15 AM
Posts: 2, Visits: 2
IE6 does not show the new chart, when I write new XML with the same name.

How can I force it to use the last XML file ?

shalom

shalom

Post #2998
Posted 11/10/2007 10:21:45 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884, Visits: 1,420
You can use the following JavaScript code to stop caching of XML data:

chart1.setDataURL(escape("xmlfile.xml?currTime=" + getTimeForURL()));
/**
  * getTimeForURL method returns the current time
  * in a URL friendly format, so that it can be appended to
  * dataURL for effective non-caching.
 */
 function getTimeForURL(){
  var dt = new Date();
  var strOutput = "";
  strOutput = dt.getHours() + "_" + dt.getMinutes() + "_" + dt.getSeconds() + "_" + dt.getMilliseconds();
  return strOutput;
 }

 



Regards,

Sudipto Choudhury
FusionCharts Team
Post #3005
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:10pm


Execution: 0.047.