Sign in to follow this  
tommytob

Export charts in IE8 not working

Recommended Posts

I have a chart made in the php class of fusioncharts. now is the export not working, I do a javascript call for the export. now the wreird thing is, it's working in IE6, IE7 and FF. only not in IE8.

 

 

 

this are the setting of javascript

 

 

 

var chartObject = getChartFromId('managementReportFigure1');

 

var name = $('managementReportFigure1Div').readAttribute('chartname');

 

if( chartObject.hasRendered() ) chartObject.exportChart({exportfilename:name,exportAction:'save',exportFormat: 'JPG' });

 

 

 

 

 

this are my settings of the chart

 

 

 

$caption1 = _t("Number of loss, measure, risk");

 

$from = _t("from");

 

$to = _t("to");

 

$strParam = "caption={$caption1};subcaption=({$from} {$fromDate} {$to} {$endDate});lineThickness=1;showValues=0;formatNumberScale=0;anchorRadius=2;divLineAlpha=20;divLineColor=D8BFD8;divLineIsDashed=1;showAlternateHGridColor=1;alternateHGridAlpha=5;alternateHGridColor=FFC0CB;shadowAlpha=40;labelStep=1;numvdivlines=5;chartRightMargin=35;bgColor=FFC0CB,CC3300;bgAngle=270;bgAlpha=10,10;exportAtClient=0;exportEnabled=1;exportHandler={$handler};exportAction=download;";

 

# Create Multiseries Column3D chart object using FusionCharts

 

$Figure1 = new FusionCharts("MSLine","600","300", "managementReportFigure1");

 

# Set the relative path of the swf file

 

$Figure1->setSWFPath("./Charts/");

 

# Set chart attributes

 

$Figure1->setInitParam('registerWithJS','1');

 

//$Figure1->setInitParam('debugMode','1');

 

# Set data

 

$Figure1->setChartParams($strParam);

 

 

 

 

 

who can help me. please

Share this post


Link to post
Share on other sites

I have flash-player 10, but this is something in javascript. he can't find the right windows version in js

 

 

 

some more information because I have debugged some javascript. the chartobject exportchart method is not supported.

 

 

 

And I have found out, that the export options in the fusion chart are not listed with a right click in IE8, in FF i see them. this are my params for it "exportAtClient=0;exportEnabled=1;exportHandler={$handler};exportAction=download"

Edited by Guest

Share this post


Link to post
Share on other sites

this is my ie8 source code

 

 

 

<DIV id=managementReportFigure1Div class="managementReportFigure1 chart" chartName="managementReportFigure1_4562_1249466797">

 

<OBJECT id=managementReportFigure1 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=600 height=300><PARAM NAME="_cx" VALUE="15875"><PARAM NAME="_cy" VALUE="7937"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="./Charts/MSLine.swf"><PARAM NAME="Src" VALUE="./Charts/MSLine.swf"><PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false"></OBJECT></DIV>

 

 

 

 

 

 

 

and this is my ff3.5 source code

 

 

 

 

 

<div id="managementReportFigure1Div" class="managementReportFigure1 chart" chartname="managementReportFigure1_3295_1249472032">

 

<embed id="managementReportFigure1" width="600" height="300" flashvars="debugMode=0&chartWidth=600&chartHeight=300&DOMId=managementReportFigure1&registerWithJS=1&scaleMode=noScale〈=EN&dataXML=<chart caption='Aantal schades, maatregelen, risico%26apos;s' subcaption='(van 05-07-2009 tot 05-08-2009)' lineThickness='1' showValues='0' formatNumberScale='0' anchorRadius='2' divLineAlpha='20' divLineColor='D8BFD8' divLineIsDashed='1' showAlternateHGridColor='1' alternateHGridAlpha='5' alternateHGridColor='FFC0CB' shadowAlpha='40' labelStep='1' numvdivlines='5' chartRightMargin='35' bgColor='FFC0CB,CC3300' bgAngle='270' bgAlpha='10,10' exportAtClient='0' exportEnabled='1' exportHandler='/~tnt/naris3-conversion/f.c.exporter' exportAction='download' ><categories ><category label='05-07-2009' /><category label='08-07-2009' /><category label='11-07-2009' /><category label='14-07-2009' /><category label='17-07-2009' /><category label='20-07-2009' /><category label='23-07-2009' /><category label='26-07-2009' /><category label='29-07-2009' /><category label='05-08-2009' /></categories><dataset seriesName='Schade' color='#BB2121' anchorBorderColor='1D8BD1' anchorBgColor='1D8BD1' ><set value='0' /><set value='0' /><set value='0' /><set value='0' /><set value='0' /><set value='0' /><set value='0' /><set value='0' /><set value='0' /><set value='0' /></dataset><dataset seriesName='maatregel' color='#9ACD32' anchorBorderColor='1D8BD1' anchorBgColor='1D8BD1' ><set value='1' /><set value='1' /><set value='2' /><set value='3' /><set value='3' /><set value='3' /><set value='4' /><set value='4' /><set value='4' /><set value='4' /></dataset><dataset seriesName='risico' color='#C26F11' anchorBorderColor='1D8BD1' anchorBgColor='1D8BD1' ><set value='20' /><set value='20' /><set value='23' /><set value='26' /><set value='26' /><set value='26' /><set value='27' /><set value='27' /><set value='27' /><set value='28' /></dataset><styles><definition><style name='CaptionFont' type='font' size='12' /></definition><application><apply toObject='CAPTION' styles='CaptionFont' /></application></styles></chart>" wmode="transparent" allowscriptaccess="always" quality="high" name="managementReportFigure1" src="./Charts/MSLine.swf" type="application/x-shockwave-flash"/>

 

</div>

 

Edited by Guest

Share this post


Link to post
Share on other sites

Oke I know a little bit of the problem, I am using Prototype 1.6.1_rc2 is this version, I can't export the chart. when I use the prototype version 1.6.1_rc3, the export of the chart is working. only some other things are not working in this version, and everything is slower. so the rc3 is even nog a options for us.

 

 

 

does anyone have a solution for this.

 

 

 

greetz thomas

Share this post


Link to post
Share on other sites

Oke,

 

 

 

I have some more information, his IE 8 problem is only on intranet. On the internet there is not a problem. but in internet is IE6 en 7 the problem so a table what is working and what not. the internet is a SSL site

 

 

 

browser | internet| intranet

 

-------------------------------------

 

IE6 | works not | works

 

IE7 | works not | works

 

IE8 | works | works not

 

FF | works | works

 

 

 

but if I set the website in the trusted sites in IE7 the chart can export his content. this is a workaround. but I must have a solution for it.

 

 

 

I am working on it but if anybody knows anything, can he post it please

 

 

 

many thanks, thomas

Edited by Guest

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