tenney Report post Posted April 20, 2009 (edited) So I have some urls that have a % in them. I urlencode the url, but the javascript seems to mess up the url to the xml. var myChart = new FusionCharts("[% page.static %]/charts/Pie3D.swf", "myChartId", "600", "200"); var strURL = escape("/data/charts/pie/location_%"); alert(strURL); myChart.setDataURL(strURL); myChart.render("chartdiv"); So the alert shows the url encoded correctly as %25. When the request comes for the XML though it is always wrong. It usually looks something like "data/charts/pie/location_m/" or "data/charts/pie/location_Mode/" What's going on here?? Edited April 20, 2009 by Guest Share this post Link to post Share on other sites
Rahul Kumar Report post Posted April 21, 2009 Hi, Could you please render the chart in debug mode and send us the debug output, it will show you what data URL is being called? To render the chart in debug mode please use this code: var myChart = new FusionCharts("[% page.static %]/charts/Pie3D.swf?debugMode=1", "myChartId", "600", "200"); Share this post Link to post Share on other sites
tenney Report post Posted April 23, 2009 INFO: XML Data provided using dataURL method. dataURL provided: /data/charts/pie/location_% dataURL invoked: /data/charts/pie/location_n?FCTime=207 Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 23, 2009 Hi, Please try double escaping the URL or only double escaping the % so that % becomes %2525. Share this post Link to post Share on other sites
tenney Report post Posted April 24, 2009 Thank you that fixes the issue. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 24, 2009 You are welc:)me! Share this post Link to post Share on other sites