james555

Images Not Saved On Server Automatically, Have To Right Click And Save

Recommended Posts

When a chart is generated it is not saving the image on the server automatically. I have to right click and save as jpeg and then it'll save in the proper folder on the server. Why is that? I need the charts to automatically save as soon as they are generated.

 

Here is the snippet of my chart code:

 

<script LANGUAGE="Javascript" SRC="FusionCharts/FusionCharts.js"></SCRIPT>
    <script type="text/javascript" src="FusionCharts/FusionChartsExportComponent.js"></script>

$strXML = "<chart caption='' numberPrefix=''  forceDecimals = '1' decimals = '2' formatNumberScale='0' exportFileName='$dr$mynum' exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://myurl.com/FusionCharts/FCExporter.php' >";

echo renderChart("FusionCharts/Column3D.swf", "", $strXML, "productSales", 635, 310, false, false);

 

Works great other than automatically saving on server as jpg image.

 

 

 

Is there another setting I should use? Server permissions seem to be fine as the right click save works fine on the web server. Please advise asap.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

In this case you need to call the export method inside the FC_Render() method.

 

Please refer to the "Export" folder of the latest FusionCharts pack(v 3.2) for ready-made sample for the same.

 

Ref.- FusionCharts_Pack_3.2 --> Code --> PHP --> Export

 

I hope this helps. :)

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