FusionCharts Support

urlencode problems

Recommended Posts

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 by Guest

Share this post


Link to post
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now