//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 ...................................
Page 1 of 1
fusion chart IE problem fusion chart not refreshing in IE but working fine for mozila
Other Replies To This Topic
#2
Posted 05 May 2009 - 04:38 AM
Hello Mohit,
Welcome to the forum. ![]()
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
Dhruva Ghosh
Other Replies To This Topic
#3
Posted 06 May 2009 - 07:59 AM
Hey,
Thanks a alot ..........![]()
It is working great..
1234
Other Replies To This Topic
Other Replies To This Topic
Page 1 of 1

Back to top
MultiQuote