• Content count

  • Joined

  • Last visited

About ScottShea

  • Rank
    Forum Newbie
  1. Not Able To Use Setdataxml

    Angshu, Thank you for the response. I appreciate it. It turns out I was passing in a hash of the XML itself and not the XML generated by the outside api. Once I corrected that everything worked fine. Please chalk this up to User Error. Scott
  2. I am trying to pass an XML stream to a FusionChart and running into some issues. The chart fails to load on the page and I cannot find any errors Controller code grabbing the XML from an external URL: data_url = "https://[removed]/run/custom.xml?start=#{@start_week}&end=#{@end_week}&x=daychart=line&application=#{@application}".html_safe data_uri = URI::escape(data_url) @response = RestClient.get(data_uri) Rails.logger.debug("Data: " + @response.inspect) View Code to invoke the Chart: <script> var chart = new FusionCharts("/charts/MSLine.swf", "quality_center_stats", "700", "400", "1", "0"); chart.setDataXML("<%= @response %>"); chart.render("quality_center_stats"); </script>