marzinsky

Client-Side Export Not Working Ie8

Recommended Posts

Hello,

 

I have a problem when I try export a graphic IE8. When I do FF, CHROME it works perfectly.

 

The code is:

 


<graph... exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1'>


<script type="text/javascript">
//Render the export component in this
//Note: fcExporter1 is the DOM ID of the DIV and should be specified as value of exportHandler
//attribute of chart XML.
var myExportComponent = new FusionChartsExportObject("fcExporter1", "./js/FCExporter.swf");
//myExportComponent.debugMode = true;
//myExportComponent.componentAttributes.width = '400';
//myExportComponent.componentAttributes.height = '60';
myExportComponent.componentAttributes.btnsavetitle = 'Save';
myExportComponent.componentAttributes.btndisabledtitle = 'Waiting...'; 


//Render the exporter SWF in our DIV fcexpDiv
myExportComponent.Render("fcexpDiv");
</script>

 

 

The problem is that it appears the 'Save' button. Always 'Waiting' is displayed.

 

My version is:

 

Version: 3.2.2(XT)

 

The code graph:

 

<graph bgAlpha="100" labelDisplay="WRAP" canvasBaseColor="CCCCCC"  zeroPlaneColor="CCCCCC" animation="1" thousandSeparator="."  decimalSeparator="," decimalPrecision="2" hoverCapBgColor="000000"  baseFontColor="ffffff" canvasBgColor="646464" bgcolor="000000"  showNames="1" formatNumberScale="0" legendBgColor="6C6C6C"  caption="Energía Activa y Reactiva mensual (KW)" xAxisName="Meses"  yAxisName="KW" exportEnabled="1" exportAtClient="1"  exportHandler="fcExporter1" exportFormats="JPEG=Exportar como  JPEG|PNG=Exportar como PNG|PDF=Exportar como PDF"><categories  fontColor="ffffff"><category name="ENE" hoverText="ENERO"  /><category name="FEB" hoverText="FEBRERO" /><category  name="MAR" hoverText="MARZO" /><category name="ABR"  hoverText="ABRIL" /><category name="MAY" hoverText="MAYO"  /><category name="JUN" hoverText="JUNIO" /><category  name="JUL" hoverText="JULIO" /><category name="AGO"  hoverText="AGOSTO" /><category name="SEP" hoverText="SEPTIEMBRE"  /><category name="OCT" hoverText="OCTUBRE" /><category  name="NOV" hoverText="NOVIEMBRE" /><category name="DIC"  hoverText="DICIEMBRE" /></categories><dataset  seriesname="Energía Activa" color="FF9A2F" showValue="1"><set  value="0.0" /><set value="0.0" /><set value="0.0"  /><set value="0.0" /><set value="0.0" /><set  value="0.0" /><set value="0.0" /><set value="56.0"  /><set value="0.0" /><set value="5178.5" /><set  value="158.0" /><set value="0.0" /></dataset><dataset  seriesname="Energía Reactiva" color="A7D34F" showValue="1"><set  value="0.0" /><set value="0.0" /><set value="0.0"  /><set value="0.0" /><set value="0.0" /><set  value="0.0" /><set value="0.0" /><set value="66.0"  /><set value="0.0" /><set value="-1.7799999713897705"  /><set value="-45.0" /><set value="0.0"  /></dataset></graph>

 

 

Sorry for my English.

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Please make sure you have done the following while exporting a chart to avoid the situation:

 

1.You have defined the correct client side export handler's id in the data (XML/JSON) of the chart.

 

2. You have passed the correct client side export handler's id while calling the exportChart() function.

 

3. Flash Player 10 or above is installed in the system.

 

4. You have Flash Player Global Security settings configured to run the samples from local file system.

 

Ref: http://docs.fusioncharts.com/charts/Tools/FlashPlayerSecuritySetup/HowToSetup.html

 

5. You have included the correct path of FusionCharts.js and FusionChartExportComponent.js in your HTML code.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hi, thanks for answering.

 

I think I've done all the steps that tells me, as for all other browsers the export works correctly

 

1.- You have defined the correct client side export handler's id in the data (XML/JSON) of the chart.

<graph .... exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1'>

 

2.- You have passed the correct client side export handler's id while calling the exportChart() function.

 

<div id="chartdiv" align="center" style="z-index:0"></div>

<script type="text/javascript">
var myChart = new FusionCharts("./js/MSColumn3D.swf", "myChartId", "1000", "400", "0", "1");
myChart.setDataXML("<%=XML%>");
myChart.render("chartdiv");




</script>

<div id="fcexpDiv" align="center" width="300px">FusionCharts Export Handler Component</div>
<script type="text/javascript">
//Render the export component in this
//Note: fcExporter1 is the DOM ID of the DIV and should be specified as value of exportHandler
//attribute of chart XML.
var myExportComponent = new FusionChartsExportObject("fcExporter1", "./js/FCExporter.swf");
//myExportComponent.debugMode = true;
//myExportComponent.componentAttributes.width = '400';
//myExportComponent.componentAttributes.height = '60';
myExportComponent.componentAttributes.btnsavetitle = 'Save';
myExportComponent.componentAttributes.btndisabledtitle = 'Waiting...'; 


//Render the exporter SWF in our DIV fcexpDiv
myExportComponent.Render("fcexpDiv");
</script>

 

 

3.- Flash Player 10 or above is installed in the system. OK

4.- You have Flash Player Global Security settings configured to run the samples from local file system. OK.

5.- You have included the correct path of FusionCharts.js and FusionChartExportComponent.js in your HTML code.

 

If steps 3,4 and 5 were not properly done, the export should not work with another browser, right?

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

I downloaded the new version I outlined in the previous post and still have the same problems in IE8. If I run the code directly in a JSP page, it works fine but the problem comes when I try to run the export graphics library integrating the ZK framework. There is some incompatibility with this framework?

 

More data: with IE9 works OK. It seems the problem is for IE8 and possibly earlier versions

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Apologies for the delay in response.

 

I am afraid, we do not have any implementations with ZK frame work, as of now.

 

Hope this helps!

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