thaiduong

Members
  • Content count

    5
  • Joined

  • Last visited

About thaiduong

  • Rank
    Forum Newbie
  1. HI I am using php to coding. I change code in FusionChartSave.php to save image to server's directory. // JPEG Header //header('Content-type:image/jpeg'); // Force download box if not IE //header('Content-Disposition: attachment; filename="FusionCharts.jpg"'); // JPEG Output with 100 quality imagejpeg($chart, "ThePathToImage.jpeg", 100); However, I have a problem because I don't change header for FusionChartSave.php page. So, my browser will go to FusionChartSave.php page intead of stay at current page (the page that show chart). I can use history.go(-1) to back to previous page but I think it's not good solution. Browser always blink the screen. Any solution to avoid it?
  2. HI I am using php to coding. I change code in FusionChartSave.php to save image to server's directory. // JPEG Header //header('Content-type:image/jpeg'); // Force download box if not IE //header('Content-Disposition: attachment; filename="FusionCharts.jpg"'); // JPEG Output with 100 quality imagejpeg($chart, "ThePathToImage.jpeg", 100); However, I have a problem because I don't change header for FusionChartSave.php page. So, my browser will go to FusionChartSave.php page intead of stay at current page (the page that show chart). I can use history.go(-1) to back to previous page but I think it's not good solution. Browser always blink the screen. Any solution to avoid it?
  3. Hi, "Save as Image" feature works as well. Now, I can save a chart as an image with imageSave,imageSaveURL attributes in XML Format. However, I want to save it to server side folder and allow user enters a new filename for this file at runtime instead of fix it in imageSaveURL file (FusionChartsSave.php). Ex: I want to create a html button on my page. When user click on this button, it will ask user enter a filename that chart will be save on server side folder and call saveAsImage() function to save it. Can I do it? please help me. I really really to need it.
  4. I am using php with professional fusionchart. I need re-create chart when user choose value from a select box. My code work as well on IE. But I cannot re-create new chart on FireFox. Firefox always show old chart that it created on the firsttime. I try to debug javascript and saw that it always call initChart function to re-create chart. But Firefox doesn't have any changed. Please help me to solve it ASAP. I have to fix this bug for my customer. Here is my code : <html> <head> <title> new document </title> </head> <script> function onSelectChange() { var chartXML =''; //get chartXML from server and init chart //... //... initChart(chartXML); } function initChart(chartXML) { var chart = document.getElementById("chartdiv"); chart = new FusionCharts("fusion/Charts/Area2D.swf", "chartdiv", 500, 500, "0", "0"); chart.setDataXML(chartXML); chartXML = ''; chart.render("chartdiv"); } </script> <body> <form name="form1"> <select name="chart" onchange="onSelectChange()"> <option value=1>1</option> <option value=2>2</option> </select> <table width="100%"> <tr height="100%"> <td height="100%" valign="top" class="block" align="center"><div id="chartdiv" style="width:100%;height:100%;"></div></td> </tr> </table> </form> </body>
  5. I am using Area2D.swf chart with mysql and php. Sometime, Area2D chart render not correct. But, this issue doesn't happen with RealTimeColumn.swf chart . IE and Firefox has same problems. Please see attached files and help me solve it.