I am having the same problem, My code works in Chrome and FF but throws an error in IE.
This is the error I am getting:
Line: 1
Error: Object doesn't support this property or method
When I debug with IE i find the error is on this line.
try { document.getElementById("mainChart").SetReturnValue(__flash__toXML(FC_Loaded("mainChart")) ); } catch (e) { document.getElementById("mainChart").SetReturnValue(""); }
I attached my source code perhaps someone can tell me if I'm doing something obviously wrong.
< !doctype html>
< html xmlns=" http://www.w3.org/1999/xhtml" >
< head>
< title> Test< /title>
< script SRC=" /js/fusionCharts/FusionCharts.js" type=" text/javascript" > < /script>
< script SRC=" /js/fusionCharts/FusionChartsExportComponent.js" type=" text/javascript" > < /script>
< /head>
< body>
< a class=" button" href=" javascript:void(0);" onclick=" initiateExport();" > Export/Print Chart< /a>
< br />
< div id=" mainChart" style=" " > The chart will appear within this DIV. This text will be replaced by the chart.< /div>
< script type=" text/javascript" >
var myChart = new FusionCharts(" /charts/FusionCharts/Column3D.swf" , " mainChart" , " 900" , " 300" , " 0" , " 1" );
myChart.setDataXML(" < chart exportEnabled='1'exportShowMenuItem='1'exportAtClient='1' exportHandler='fcExporter1' exportFileName='MyFile' showAboutMenuItem='0' showExportDataMenuItem='1' caption='Monthly Sales Summary' subcaption='For the year 2006' xAxisName='Month' yAxisName='Sales' numberPrefix='$'> < set label='January' value='17400' /> < set label='February' value='19800' /> < set label='March' value='21800' /> < set label='April' value='23800' /> < set label='May' value='29600' /> < set label='June' value='27600' /> < set label='July' value='31800' /> < set label='August' value='39700' /> < set label='September' value='37800' /> < set label='October' value='21900' /> < set label='November' value='32900' /> < set label='December' value='39800' /> < /chart> " );
myChart.render(" mainChart" );
< /script>
< div style=" float:left" id='handlerDivWrapper'>
< div id='exportHandlerDiv'> FusionCharts Export Handler Component< /div>
< /div>
< script type=" text/javascript" >
var fcExportComponent = new FusionChartsExportObject('fcExporter1', '/charts/FusionCharts/FCExporter.swf');
fcExportComponent.sourceCharts = " ['mainChart']" ;
//Full Mode
fcExportComponent.componentAttributes.fullMode = '1';
//Set saving type to individual
fcExportComponent.componentAttributes.saveMode = 'both';
//Show allowed export format drop-down
fcExportComponent.componentAttributes.showAllowedTypes = '1';
//Width and height
fcExportComponent.componentAttributes.width = '350';
fcExportComponent.componentAttributes.height = '250';
//Message - caption of export component
fcExportComponent.componentAttributes.showMessage = '1';
fcExportComponent.componentAttributes.defaultExportFileName = " my_file" ;
fcExportComponent.componentAttributes.message = 'Save file(s) in desired format, then open file to print or attach to email.';
//Render the exporter SWF in our DIV fcexpDiv
fcExportComponent.Render(" exportHandlerDiv" );
function initiateExport(){
fcExportComponent.BeginExportAll();
}
< /script>
< /body>
< /html>
By the way SANATIZE YOUR FORM INPUTS It makes me sick that i had to html encode my source just to post on your site...