Guest Basundhara Ghosal

Export chart doesn't work if not deployed

Recommended Posts

I tried fusion chart exporting on server side these days, and found that exporting feature didn't work when I simply open the html file in IE8 on my local disk, say, on desktop. After the chart capturing data, no image saved on server side and the callback function not triggered. But, after deploying the html via tomcat, chart exported successfully, and the callback invoked.

Note: the FCExporter.jsp always deployed via tomcat, and worked fine.

Following is my code snippet for your information (My FusionChart version is 3.1):

<code>

function onChartExportedStub(retObj) {

  onChartExported(retObj.statusCode, retObj.statusMessage,retObj.fileName, retObj.DOMId);

}

var myChart = new FusionCharts("FusionCharts/Charts/Pie2D.swf", "myChartId", "640", "400", "0", "1");

myChart.setDataURL("PieChartTest.xml");

myChart.render("chartdiv");

<chart exportEnabled='1' exportAtClient='0' exportAction='save' exportCallback='onChartExportedStub' exportHandler='http://xxxxxxx:8080/FCExport/FCExporter.jsp'>...</chart>

</code>

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