vegetus Report post Posted January 2, 2011 Hi all, Can I change the "GET" to "POST" method when sending data from the server? In my project, there is a listbox with multiple selection, where I need to send the data (in array) via POST method. Thanks, Vinicius - Brazil. Share this post Link to post Share on other sites
vegetus Report post Posted April 19, 2011 Hi All, I had a big problem today. I sent the url with more than 10,000 characters for GET. I need the data to be sent to POST. Anyone have any idea how to send data in POST method, in setXMLUrl()? I got within 2 days to solve the problem. :-( Thanks, Vinicius Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 9, 2011 Hi, Could you please let us know if this is due to the large number of get variables that you are passing to the data generation URL or the chart's URL? If possible please send us the code/request being used. Also please let us know if you are using core HTML based implementation or Flex based application. Share this post Link to post Share on other sites
vegetus Report post Posted June 30, 2011 Hi Sudipto Choudhury, There is a time, I stirred a part of the code FusionCharts.js, which added a new algorithm with the possibility of sending the variables via the POST method. I use the POST method when I have a great deal of variables to send to the server, the tool which has created various filters. The solution is to add the code in a particular place in FusionCharts.js. But that's not all. Have to move elsewhere in the code as well. x.open('POST', u, true); x.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); x.setRequestHeader("Content-length", serializeData); x.setRequestHeader("Connection", "close"); x.send(serializeData); For instance, calling this: var chart = new FusionCharts("../../Charts/Column2D.swf", "ChartId", "560", "400", "0", "1"); chart.setXMLUrl("../Data/XML/Col2D1.xml"); chart.setXMLUrl("generateXml.php", "POST", $(".input-default").serialize()); chart.render("chartdiv"); It will be very useful FusionCharts the company released a new version already contains the ability to send data via POST. Please see the attached file. Thanks, Vinicius. FusionChartsPost.zip Share this post Link to post Share on other sites