![](https://forum.fusioncharts.com/uploads/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png)
soppie
Members-
Content count
2 -
Joined
-
Last visited
About soppie
-
Rank
Forum Newbie
-
Addeventlistener Fusioncharts.renderchart
soppie replied to soppie's topic in FusionCharts and ASP.NET
Thx, but tried that already. This giving me an javascript: Cannot call method 'addEventListener' of undefined So I thought this wasn't the way to do it. I use a Masterpage, could that be the cause? -
I use FC for quite some time now, without any problems, but now I'm stuck when trying to add an EventListener. Saving and downloading techniques are known to me and working fine. In a new project I want to save the chart to disk after rendering is complete like in the example http://docs.fusioncharts.com/charts/Code/ExportChartSamples/ClientSide/Auto.html I get my data from a database, and I put it all together in a literal which I add to my .net page like this: outPutThis = FusionCharts.RenderChart("FusionCharts/StackedColumn3D.swf", "", StringbuilderxmlData.ToString(), "CountByTypePerYear", "1200", "400", False) MyLiteral.Text = outPutThis How do I add this part to the rendered javascript in the literal: myChart.addEventListener("Rendered", function () { FusionCharts("CountByTypePerYear").exportChart(); } ); Thx!