FusionCharts Forum: fusion chart IE problem - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

fusion chart IE problem fusion chart not refreshing in IE but working fine for mozila

#1 User is offline   mohit 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 05-May 09

Posted 05 May 2009 - 01:36 AM

//generating xml



$dom = new DOMDocument("1.0");

header("Content-Type: text/xml");

$root = $dom->createElement("chart");

$dom->appendChild($root);

$root->setAttribute('caption',$Name);





$root->setAttribute('formatNumberScale','0');

$root->setAttribute('showBorder','1');

if($carbo_per!='')

{

$item = $dom->createElement("set");

$item->setAttribute('label','Carbo');

$item->setAttribute('value',round($carbo,2));

$root->appendChild($item);

}

if($pro_per!='')

{

$item = $dom->createElement("set");

$item->setAttribute('label','Pro');

$item->setAttribute('value',round($pro,2));

$root->appendChild($item);

}

if($totalfa!='')

{

$item = $dom->createElement("set");

$item->setAttribute('label','Fa');

$item->setAttribute('value',round($totalfa,2));

$root->appendChild($item);

}

if($alco!='')

{

$item = $dom->createElement("set");

$item->setAttribute('label','alco');

$item->setAttribute('value',round($alco,2));

$root->appendChild($item);

}



echo $dom->saveXML();





$str= ."/library/Fusion_Chart/Data.xml";



//saving the xml

$dom->save($str);

//rendering the chart

$piechart = renderChartHTML("/library/Fusion_Chart/Pie3D.swf", "/library/Fusion_Chart/Data.xml", "", "myFirst", 600, 300);







that chart is generating fine for mozila but in IE after generating once if i am taking new data and generating new xml then the xml is generating but while generating the chart it is showing the previous chart (havong previous content) ..

please advise me ...................................
1234
0

Other Replies To This Topic

#2 User is offline   Dhruva 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 449
  • Joined: 23-March 09

Posted 05 May 2009 - 04:38 AM

Hello Mohit,

Welcome to the forum. :D

Could you please try using a cache-killer? Something like:

Quote

$piechart = renderChartHTML("/library/Fusion_Chart/Pie3D.swf", "/library/Fusion_Chart/Data.xml?NoCache=".microtime(), "", "myFirst", 600, 300);

I hope this helps!

Regards,

Dhruva Ghosh
0

Other Replies To This Topic

#3 User is offline   mohit 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 05-May 09

Posted 06 May 2009 - 07:59 AM

Hey,

Thanks a alot ..........:D

It  is working great..

1234
0

Other Replies To This Topic

#4 User is offline   Dhruva 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 449
  • Joined: 23-March 09

Posted 07 May 2009 - 02:15 AM

You're welcome! :D
Regards,

Dhruva Ghosh
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic