Sign in to follow this  
Pallav

getChartFromId and IE??

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this