getXML() not returning xml
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



getXML() not returning xml Expand / Collapse
Author
Message
Posted 5/6/2008 10:48:40 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/6/2008 1:33:11 PM
Posts: 4, Visits: 7
I can't seem to get $FC->getXML(); to work properly. I have a chart that is being rendered fine and is receiving the xml data properly, and I can see the xml data string in my javascript but in my php code I cannot seem to store the xml data. Is there something I'm doing wrong?

Here's what I'm trying to do in the php file after i've set all chart params and created the instance of the chart:



# Create Line chart Object
$FC = new FusionCharts("MSLine","600","400");

# set the relative path of the swf file
$FC->setSWFPath("./dl/chart/FusionCharts/");

# (skipping addition of param setting code and addition of data, it's working as the chart renders)

$xml = $FC->getXML();

# Render Chart
$FC->renderChart();

echo "xml : " . $xml;


The problem is I can't see my $xml variable that I wish to echo with the php file. Is there something I'm not doing write in my call to getXML(); ?
Post #6110
Posted 5/6/2008 10:59:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/6/2008 1:33:11 PM
Posts: 4, Visits: 7
I read something about debug mode being required for getXML to work. Is this correct? I've searched the documentation for the FusionCharts Free but can't seem to find how to enable debug mode for my charts.
Post #6111
Posted 5/7/2008 12:08:08 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 10/3/2008 11:59:51 PM
Posts: 328, Visits: 1,356
Hi Mac,
  Could you please try this code?

echo "<textarea rows='10' cols='50'>$xml</textarea>";

Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #6116
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:07am


Execution: 0.047.