Hi , I have this php code and the variable is XML data
$strXML = "<chart caption='ADI Chart Test ' xAxisName='Month' yAxisName='Units'"
$strXML.= "showValues='0'formatNumberScale='0' showBorder='1'>";
echo "<td align='right' onClick='drawchart($strXML)' > $totalcost </td> " ;`
this is passed to a javascript function
function drawchart(dataX) {
var chart1 = new FusionCharts("../charts/Pie3D.swf", "chart1Id", "400", "300","1");
chart1.setDataXML(dataX);
chart1.render("chart1div");
My problem is that the link is not displayed correctly and more importantly there is no data when it gets to the js function
Could anyone tell me how to send xml data via a js variable please ?