Bret K. Ikehara Report post Posted October 18, 2011 Fusion Charts Version: 3.2.2 Replicable: Always Problem: I am having problems listening to the Exported event using the advanced event model. Other events such as DrawComplete works perfectly, but Exported event does not fire. Defining the functions FC_Exported works fine, but that is not what I want. When I was looking through the FusionCharts.js, I noticed there existed references to the other events such as "DrawComplete" within the JavaScript code, but the "Exported" string did not appear. Example code: <pre> var chart = new FusionCharts(chartObj); chart.setDataURL("data.xml"); chart.render("graph"); chart.addEventListener("DrawComplete", function (e, args) { FusionCharts(o.id).exportChart( { "exportFormat" : "PNG" } ); }); // Does not work. chart.addEventListener("Exported", function (e, args) { alert("fired " + e.eventType + " for " + e.sender.id); }); // Works perfectly. function FC_Exported(o) { alert(o.DOMId); } </pre> Share this post Link to post Share on other sites
Bret K. Ikehara Report post Posted October 29, 2011 var chart = new FusionCharts(chartObj); chart.setDataURL("data.xml"); chart.render("graph"); chart.addEventListener("DrawComplete", function (e, args) { FusionCharts(o.id).exportChart( { "exportFormat" : "PNG" } ); }); // Does not work. chart.addEventListener("Exported", function (e, args) { alert("fired " + e.eventType + " for " + e.sender.id); }); // Works perfectly. function FC_Exported(o) { alert(o.DOMId); } Is anyone else having this problem? Should this be moved to the bug reports subforum? Share this post Link to post Share on other sites