• Content count

  • Joined

  • Last visited

Everything posted by FedNer

  1. Hi everybody. I got stuck in a problem with FusionCharts Free. What I intended to do: I have to load a web page on a browser that changes data of the chart cyclically. I built a database routine that exports xml code for every set of data to represent. Then I wrote a simple HTML page with a JavaScript function called every n seconds which sets the new data URL and renders the chart. This is the code: <HTML> <HEAD> <TITLE>FusionCharts Free - JavaScript</TITLE> <script LANGUAGE="Javascript" SRC="../JSClass/FusionCharts.js"></SCRIPT> <script LANGUAGE="JavaScript"> function loadNextData(DataArray,Index){ chart.setDataURL(DataArray[index]); chart.render("chartdiv"); } </SCRIPT> </HEAD> <BODY> <div id="chartdiv"> FusionCharts </div> <script language="JavaScript"> DataArray = ["Commessa3.xml","Commessa4.xml"]; var chart = new FusionCharts("../FusionCharts/FCF_Column3D.swf", "chartId", "400", "300", "0", "1"); loadNextData(DataArray,0); for (var i=1;i<DataArray.length;i++){ window.setTimeout("loadNextData(DataArray,i)", 5000); } </script> </HTML> What I get is that loadNextData(DataArray,0); loads properly the first dataset but the next dataset isn't loaded and the error ReferenceError: __flash__addCallback is not defined is fired. I spent several hours and really don't understand how to get out of it... So I hope in your help. Thanks in advance. Federico
  2. Sorry, I just realized that I posted in the wrong section, I'm going to write the same in the FusionCharts Free section.