saurabh
Members-
Content count
6 -
Joined
-
Last visited
About saurabh
-
Rank
Forum Newbie
-
Sorry for the previous post. But don't know I have faced this problem previously on this forum. Cann't seems to get over it. You could look into the source code of this page to check my code in previous post.
-
Hi, I had the same problem. For some reason I was not able to save the chart as image/pdf while using PHP. Don't know if its a bug or what. But the following javascript code worked. //Callback handler method which is invoked after the chart has saved image on server. function myCallBackFunction(objRtn) { if (objRtn.statusCode=="1") { alert('success'); } else { alert("The chart could not be saved on server. There was an error. Description : " + objRtn.statusMessage); } } var myChart = new FusionCharts("/FusionCharts/Bar2D.swf", "myChartId", "771", "500", "0", "1"); myChart.setDataURL('data.xml'); // This file contains my xml myChart.render("listing"); // Listing is my div id. Just watchout for the last parameter of function FusionCharts. It should be true. Let me know if it works.
-
Hi, Maybe I was not clear in my previous post. I repeat, the FCExporter.php is NOT getting connected while I am using 'SAVE'. It is getting connected only in case of 'DOWNLOAD'. I have got the callback function included in my js but its useless unless i get connected to FCExporter.php Is there anything different I need to do to get connected to FCExporter.php in case of 'SAVE'? I have followed the 4 points mentioned in documentation. Thanks, Saurabh.
-
Hi Ayan, Thanks for your reply. I do have the permission to save the file on the said directory. But as I wrote in my previous posts, these things come into play only when my flow goes into the file FCExpoerter.php, which is not happening currently Since the flow goes into the FCExporter.php while I am downloading, so I suppose path to FCExporter.php is not an issue. By the way capturing process happens correctly. and after that it just stops. I guess there is some other problem. Don't know what Thanks, Saurabh Mahajan
-
anyone ??
-
Hi Guys, I am able to download the chart as image/Pdf successfully. Below is my code: $strXML = ""; foreach ($totalRecords as $key => $value) : $strXML .= ""; endforeach; $strXML .= ""; echo renderChart("/FusionCharts/Bar2D.swf", "", $strXML, "productSales", 600, 300, "1", "0"); When I want to save the chart on server, I change the code as below: $strXML = ""; foreach ($totalRecords as $key => $value) : $strXML .= ""; endforeach; $strXML .= ""; echo renderChart("/FusionCharts/Bar2D.swf", "", $strXML, "productSales", 600, 300, "1", "1"); But the funny thing is that the control doesn't go inside FCExpoerter.php in this case. I have also set the path inside FCExpoerter.php but i guess thats irrelevant until the control goes inside. The download still works well if i switch from 'save' to 'download'. Is there anything else that I am missing. Has anyone faced this kind of situation? Any help would be appreciated. Thanks in Advance Saurabh Mahajan