Digital Clouds Report post Posted June 30, 2008 Hi, I have a problem with some javascript and the latest version of FusionCharts. I have multiple charts on one page, each one in an iframe because I generate images and create a pdf. I have the following code - for debug purposes - with the output produced: alert (top.frames['frame1'].document.getElementById('chart')); Safari: [object HTMLEmbedElement] IE: [object] alert (top.frames['frame1'].document.getElementById('chart').saveAsImage); Safari: function saveAsImage() { ... } IE: function () { ... } alert (top.frames['frame1'].getChartFromId("chart")); Safari: [object HTMLEmbedElement] IE: [object Object] alert (top.frames['frame1'].getChartFromId("chart").saveAsImage); Safari: function saveAsImage() { ... } IE: undefined With IE6, when I try to use the getChartFromId method to retrieve the chart object and call the function saveAsImage(), it looks like the object is not returned with the right type? Am I doing something wrong? Thank you for your help. Share this post Link to post Share on other sites
Pallav Report post Posted July 2, 2008 Hi, Can you make sure you're calling this code in FC_Rendered function (i.e., after the chart has loaded and exposed its API to JS)? Share this post Link to post Share on other sites