FusionCharts Forum: what I have to set as exportHandler? - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

what I have to set as exportHandler?

#1 User is offline   macsig 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: 26-May 09

Posted 11 March 2010 - 01:44 PM

I have been able to successfully download a chart as image and now I'm trying to save it server-side.



I have changed the exportAction attribute, removed exportTargetWindow and updated properties.rb as below:




    # This path is relative to the web application root

    @@SAVEPATH = "/public/charts"

    

    #Used to show as message in SWF

    #This constant HTTP_URI stores the HTTP reference to 

    #the folder where exported charts will be saved. 

    #Please enter the HTTP representation of that folder 

    #in this constant e.g., http://www.yourdomain.com/images/

    @@HTTP_URI = "http://localhost/charts/"





But now I'm confused about the value I need to use for the exportHandler attribute.



On the docs I find: "In case of server side exporting, this refers to the path of the server-side export handler (the ready-to-use scripts that we provide)."



And in the readme.txt file that comes with the download: "Now in the xml for the chart, specify the exporthandler value to be "Fusioncharts/fc_exporter/index"



But the fc_exporter folder doesn't contain any index file. Am I missing something?





I have anyway tried to save a chart setting up




 :exportHandler => '/Fusioncharts/fc_exporter/index',





but nothing happens: when 100% of data is captured I don't get any error, FC_Exported function is not called and of course no image is saved in the chart folder.





Thanks for your help.
Alla prossima ...
0

Other Replies To This Topic

#2 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 11 March 2010 - 08:12 PM

Hi

:exportHandler => '/Fusioncharts/fc_exporter/index'

is correct as long as you have fc_exporter_controller.rb with action named index in app/controllers/fusioncharts folder.

Please modify the following property:

 @@SAVEPATH = "./public/charts"

Hope this works. :)

Srividya

regards,
Srividya Sharma
0

Other Replies To This Topic

#3 User is offline   macsig 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: 26-May 09

Posted 05 April 2010 - 06:41 PM

Thanks for your reply.

Updating @@SAVEPATH salved the issue.
Alla prossima ...
0

Other Replies To This Topic

#4 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 05 April 2010 - 07:25 PM

Hi

You are most welcome.

Glad that your problem got solved. :)

Keep FusionCharting!

Srividya

regards,
Srividya Sharma
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic