FedNer
-
Content count
4 -
Joined
-
Last visited
Posts posted by FedNer
-
-
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 i want 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
-
Sorry, I just realized that I posted in the wrong section, I'm going to write the same in the FusionCharts Free section.
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
-
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
Referenceerror: __Flash__Addcallback Is Not Defined
in Javascript Problems
Posted · Edited by FedNer · Report reply
Maybe __flash__addCallback isn't recognized because
??I hope not because it's very silly what I want to do and I don't need to send requests to the database. However, if that's the reason, how can I update the chart from exported xml data with Ajax? I'm a newbie in web programming so any help will be appreciated...
Federico
P.S.: I'd like to avoid to embed all data and html code in a single file if possible...