Javascript problem with exporting charts In IE I get Object doesn't support this property or method
#1
Posted 10 March 2009 - 04:17 AM
I'm working on export functionality, but I get 'Object doesn't support this property or method error' in IE. Of course it is working fine in FF.
Here is sample of my code:
var inside = document.createElement("div");
var id = 'id';
inside.id = id;
var chart = new FusionCharts("Charts/MSColumn3D.swf", id+ "1", width, height, "0", "1");
chart.setDataXML(...);
chart.setTransparent(true);
chart.render(inside);
After that chart is rendered correctly and in both browsers I get event FC_Rendered. Function for this event now looks like this:
function FC_Rendered(domId){
alert(domId);
var chartObject = getChartFromId(domId);
if (chartObject != null) {
if( chartObject.hasRendered() ) {
chartObject.exportChart();
}
}
return true;
}
In IE methods hasRendered and exportChart are not supported by this object.
Does somebody know how to solve this issue?
Regards
Other Replies To This Topic
#2
Posted 10 March 2009 - 08:27 AM
Rahul Kumar
Software Engineer
A byte of magic.
Other Replies To This Topic
#3
Posted 16 March 2009 - 08:29 AM
Other Replies To This Topic
#4
Posted 17 March 2009 - 09:59 AM
var id = 'id';
inside.id = id;
var chart = new FusionCharts("Charts/MSColumn3D.swf", id+ "1", width, height, "0", "1");
chart.setDataXML(...);
chart.setTransparent(true);
Rahul Kumar
Software Engineer
A byte of magic.
Other Replies To This Topic
#5
Posted 18 March 2009 - 03:19 AM
Thanks for help!
Other Replies To This Topic
#6
Posted 18 March 2009 - 05:42 AM
Rahul Kumar
Software Engineer
A byte of magic.
Other Replies To This Topic
#7
Posted 18 March 2009 - 05:47 AM
Other Replies To This Topic
#8
Posted 18 March 2009 - 06:18 AM
Rahul Kumar
Software Engineer
A byte of magic.
Other Replies To This Topic
#9
Posted 13 May 2009 - 09:12 AM
I'm having exactly the same problem. I'm using fusion charts full version 3.1.1 . In my code I generate the div and then pass it's ID to the render function, after that I call the FC_Rendered(DOMId) with a ExportChart(). Works just fine on Firefox but it won't export on IE. Anything else I could try to solve this?
Thanks,
Davi Elias
Other Replies To This Topic
#10
Posted 14 May 2009 - 03:05 AM
Hello could you please check http://www.fusioncharts.com/forum/Topic14049-35-1.aspx and see if it helps?
Dhruva Ghosh
Other Replies To This Topic
#11
Posted 15 May 2009 - 10:00 AM
I actually managed to get it working under IE using a very inelegant way. But now when I export images under Firefox the labels won't show, apparently the FC_Rendered(DOMId) starts the graphic export before it is fully rendered. Any ideas on how to make this work? I already tried a lot of way to delay the export function start but none worked. Also I have no idea what the .js on the thread posted above does and why should it affect the image exporting process under my .js, could you please explain that to me?
Thanks,
Other Replies To This Topic
#12
Posted 18 May 2009 - 11:39 PM
Could you please thy with animation='0' in chart element?

Back to top
MultiQuote

