I am using the drill down chart as described in the example http://www.fusioncharts.com/docs/Contents/PHP_JS_URL.html
There is an updateChart() javascript function to which i would like to send multiple arguments. But when i tried to change the arguments to text files, I am getting error saying 'all command not found'. 'all-regr' is the argument i am trying to pass.
Here is the specific code snippet i am referring to. I am copying the definition of the updateChart as i have not changed it from the original. When the argument is a single number like $matches[2] in the case below everything works fine. But when it is a string argument, the browser is trying to execute the argument as a command. I tried various forms of escaping to no avail. I have seen the unescapeLinks comment in a different post and have tried it. But that did not fix the problem either.
Thanks for the help.
<code>
$strXML = "<chart unescapeLinks='0' palette='4' piefillAlpha='34' pieBorderThickness='1' hoverFillColor='FDCEDA' pieBord
erColor='666666' baseFontSize='9' useHoverColor='1' showLabels='1' showValues='1' caption='LSF Usage By Project' showShadow=
'0'>";
$strXML .= "<category label='all-regr'>";
system("../../../../../../site_overview/mypbstree.pl -l7 -gall-regr| grep Group", $pbsProjects, $retVal);
exec("cat text.txt", $pbsProjects, $retVal);
$i=0;
foreach ($pbsProjects as $projects) {
$i += 1;
preg_match('/Group = (.*),(d*),(d*)/', $projects, $matches);
//Note that we're setting link as updateChart(factoryIndex) - JS Function
$strXML .= "<category value='" . $matches[2]. "' label='" . $matches[1] . "' link='javaScript:updateChart(".$matches[1
].")'>";
$strXML .= "</category>";
}
$strXML .= "</category>";
//Finally, close <chart> element
$strXML .= "</chart>";
</code>