FusionCharts Forum: FusionCharts.js setDataURL method problem - FusionCharts Forum

Jump to content

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

FusionCharts.js setDataURL method problem

#1 User is offline   franee 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 26-June 07

Posted 28 June 2007 - 02:29 PM

Hi,



Im using fusion charts with ruby on rails.

Im using the dataURL method and i had problems with querystrings getting lost.



example:



chart_patient_demographics_graph.setDataURL("/reports/main_doctor_reports/render_graph/1?group_id=1&graph=patient_demographics_graph&test=qwer" );



On the render_graph action, when i inspect the params object, all i see is the id and the graph_id. No graph and test param keys anywhere. Any ideas? Im pretty sure i don't have filters that munge the params.



thanks,

/francis
0

Other Replies To This Topic

#2 User is offline   Pallav 

  • FusionCharts Team
  • Group: Administrators
  • Posts: 2386
  • Joined: 08-December 06

Posted 29 June 2007 - 02:45 AM

Just URL-Encode the entire URL before passing it to FusionCharts.
Thanks,
Pallav Nadhani
Co-founder & CEO, FusionCharts Team
0

Other Replies To This Topic

#3 User is offline   franee 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 26-June 07

Posted 29 June 2007 - 06:58 AM

Thanks it worked.



I had to CGI.escape the whole url.
0

Other Replies To This Topic

#4 User is offline   srividya_sharma 

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

Posted 01 April 2010 - 10:57 AM

To summarize, CGI.escape can be used in RoR to encode the URL which contains parameters.

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