arvind.murugesan Report post Posted October 19, 2007 Hi, I am trying to pass a two variables to the clickURL parameter of the chart.And for some reason when i do that the chart is not rendered and i get a invalid xml format.But it works fine if i pass one variable.I want to know if it is possible to pass two variables on the clickURL attribute. <chart clickURL='./fix_apps.php?type=orders_apps&orderdate=$orderdate'> Share this post Link to post Share on other sites
Pallav Report post Posted October 20, 2007 Hi, Just URLEncode the entire URL. Share this post Link to post Share on other sites
arvind.murugesan Report post Posted October 26, 2007 Thank ya..i found a workaround but it doesn't seems to like the urlencode or i am usin it the wrong way.. but i suggest that u add that to ur documentation and give some examples.. Thanks again !! Share this post Link to post Share on other sites
Jenny Report post Posted June 17, 2008 I have a similar issue, using PHP and the FusionCharts js class. I create the chart with code like this: var myChart = new FusionCharts("Charts/Gantt.swf", "myChartId", "1000", "100", "0", "0"); myChart.setDataURL("index_chart.php?id=1&subId=2"); But in chart.php, $_GET contains only id, not subId. Share this post Link to post Share on other sites
Arindam Report post Posted June 18, 2008 Hi Jenny, Please use escapes for URL encode. It will solve your problem. var myChart = new FusionCharts("Charts/Gantt.swf", "myChartId", "1000", "100", "0", "0"); // url encode var strURL = escape("index_chart.php?id=1&subId=2"); myChart.setDataURL(strURL); Share this post Link to post Share on other sites
Jenny Report post Posted June 18, 2008 Thanks, Arindam. Share this post Link to post Share on other sites