Stofolus Report post Posted July 13, 2012 We are trying to upgrade from 3.2.1-release to 3.2.3-sr3.5347 but we're running into a problem with some of the data urls. If we have a link that it something like this http://mypage.com/getXML?id=a&b it's then encoded and the attributes are double encoded so the & turns into a %2526. Still when it's sent to fusioncharts it's completely decoded and then everything is encoded once and the b is then translated as an extra parameter instead of a value. Any ideas on how we can get around this issue? Share this post Link to post Share on other sites
Guest Sumedh Report post Posted July 13, 2012 Hi, Can you please explain the scenario, a bit more? Where did you get this issue? Can you paste your sample code and XML here? Share this post Link to post Share on other sites
Stofolus Report post Posted July 13, 2012 Hi, Can you please explain the scenario, a bit more? Where did you get this issue? Can you paste your sample code and XML here? I run fc.setData("http://mypage.com/getXML?id=a%2526b"); And in the debug window i get dataURL provided: http://mypage.com/getXML?id=a%2526b dataURL invoked: http://mypage.com/getXML?id=a&b since & is a parameter delimiter in the URL this will change the parameter list from id: a&b To id: a b: so because of this the xml cannot be found. It seems to be decoding the URL one to many times Share this post Link to post Share on other sites
Guest Sumedh Report post Posted July 13, 2012 Hi, Please send us the sample code, so that we can test. Share this post Link to post Share on other sites
Stofolus Report post Posted July 13, 2012 Hi I can't send you our code but here's the javascript we use: var myChart8170 = new FusionCharts( "/dev/FusionCharts/MSCombiDY2D.swf", "myChartId8170", "1111", "490", "1", "1", {wMode : "transparent"} ); myChart8170.render("chartdiv8170"); myChart8170.setDataURL("[url="http://mypage.com/getXML?id=a%2526b"]http://mypage.com/getXML?id=a%2526b[/url]"); I can't get you any serverside code but what getXML does is take the parameter id and the value has to be "a&b" (without quotes). The problem is that it splits the value "a&b" at the &. Have in mind that this does work as it should in version 3.2.1 Share this post Link to post Share on other sites
Stofolus Report post Posted July 13, 2012 It seems that the forum added some url tags to my url, so you have to remove that Share this post Link to post Share on other sites
Guest Sumedh Report post Posted July 13, 2012 Hi, Please note, setDataURL method is a deprecated method. Try using setXMLData method. Share this post Link to post Share on other sites
Stofolus Report post Posted July 16, 2012 Hi, Please note, setDataURL method is a deprecated method. Try using setXMLData method. We have that that too, it gives the same result. There isn't anything wrong with the way we're using fusioncharts because if we specify a URL without any special characters it works. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted July 16, 2012 Hi, setXMLUrl JavaScript function of FusionCharts API is working fine for the URL : http://samplePage.php/getXML?id=a%2526b and returns the output as a&b. So, could you please explain which method are you using to pass the URL with the value as a%2526b? Share this post Link to post Share on other sites