﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts v3 / Using FusionCharts / JavaScript Problems  / setDataURL woes / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 02:28:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>HI ALL,&lt;/P&gt;&lt;P&gt;Could you please go through the threads of this post for some realyer codes in ASP, PHP, ASP.NET VB and ASP.NET C# &lt;A href="http://www.fusioncharts.com/forum/Topic3741-27-1.aspx"&gt;http://www.fusioncharts.com/forum/Topic3741-27-1.aspx&lt;/A&gt;?</description><pubDate>Fri, 25 Apr 2008 15:34:16 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>Just bumping this thread in the hopes that I can get an example of a relay script.&lt;/P&gt;&lt;P&gt;Barring that, would it be possible to maybe get a copy of the older Fusion Charts engine (for lack of a better word) that would allow me to access a different server without a relay script? Or, could the "relative url" security feature possibly be made into an option that can be toggled on or off?&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Fri, 25 Apr 2008 08:51:06 GMT</pubDate><dc:creator>acrolite</dc:creator></item><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>Hmmm... ok, well, can you possibly give me an example of the relay script that you mentioned? (Just a general idea of what you had in mind, or where I might find it). Thanks!</description><pubDate>Wed, 23 Apr 2008 13:46:42 GMT</pubDate><dc:creator>acrolite</dc:creator></item><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;It is more probable that the version of FusionGadgets/FusionWidgets (v3.0.1 - December 26th, 2007 onwards) that you are using does not have this XSS attack prevention feature while the version (FusionCharts v3.0.5 - 22nd December, 2007 onwards) &lt;/TD&gt;&lt;/TR&gt;of chart that you are using does have it.</description><pubDate>Wed, 23 Apr 2008 13:13:19 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>I will give the relayer script a try. But, I guess my question now is - Why would the setDataURL function work for one gauge and not on a graph, when they're both on the same page and they both call from the same server? &lt;/P&gt;&lt;P&gt;Does the setDataURL function work differently for Fusion Charts than it does for Fusion Gadgets?&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Wed, 23 Apr 2008 10:46:12 GMT</pubDate><dc:creator>acrolite</dc:creator></item><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Could you please try using a relayer script (in the same domain as of the application file and chart swf) that loads the XML from the other domain and once loaded sets the XML to the chart?</description><pubDate>Wed, 23 Apr 2008 08:35:35 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>Thanks for the quick response.&lt;P&gt;Unfortunately, the cgi script that I am trying to call is located on a different server. I don't believe it's possible to use a relative url when I'm trying to access a different server...?&lt;/P&gt;&lt;P&gt;Any ideas/suggestions?&lt;/P&gt;&lt;P&gt;Thanks again.</description><pubDate>Wed, 23 Apr 2008 08:05:28 GMT</pubDate><dc:creator>acrolite</dc:creator></item><item><title>RE: setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;Could you please try using relative URL instread of using absolute URL (one that has http://.. ). Newer version of charts does not allow absolute URL to stop XSS Attacks.</description><pubDate>Wed, 23 Apr 2008 01:48:54 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>setDataURL woes</title><link>http://www.fusioncharts.com/forum/Topic5857-35-1.aspx</link><description>Hello,&lt;P&gt;In a page that I'm working on, I can use the following for a fusiongadget gauge:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;div&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;id&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="chart4"&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;align&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="center"&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;script&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;type&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="text/javascript"&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;var&lt;/FONT&gt;&lt;FONT size=2&gt; myChart = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; FusionCharts(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"FG/Charts/AngularGauge.swf"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"chart4"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"180"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"100"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"0"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"0"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;myChart.setDataURL("&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;A href="http://server_name/check_table.cgi?tabName=table5"&gt;http://server_name/check_table.cgi?tabName=table5&lt;/A&gt;"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;myChart.render(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"chart4"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;script&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;div&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#111111&gt;This works fine and the guage displays. However, on the same page I am trying to do the same thing with a &lt;FONT size=2&gt;MSColumn2D.swf chart... but it's not working. I get an "Error in loading data" message.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#111111 size=2&gt;I've verified the XML is correct.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#111111 size=2&gt;Any ideas?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#111111&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Tue, 22 Apr 2008 15:21:23 GMT</pubDate><dc:creator>acrolite</dc:creator></item></channel></rss>