﻿<?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 Free / JavaScript Problems   / Problem with setDataURL and Ampersand / 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>Tue, 07 Oct 2008 10:34:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Problem with setDataURL and Ampersand</title><link>http://www.fusioncharts.com/forum/Topic2105-47-1.aspx</link><description>I also ran into this.  There is a javascript function to help &lt;br&gt;&lt;br&gt;gauge1.setDataURL("URL?" + encodeURIComponent("param1=111&amp;param2=222"));&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 01 Feb 2008 08:47:21 GMT</pubDate><dc:creator>smerchek</dc:creator></item><item><title>RE: Problem with setDataURL and Ampersand</title><link>http://www.fusioncharts.com/forum/Topic2105-47-1.aspx</link><description>doing an escape() resolved the issue for me..</description><pubDate>Mon, 27 Aug 2007 14:56:01 GMT</pubDate><dc:creator>kpalania</dc:creator></item><item><title>RE: Problem with setDataURL and Ampersand</title><link>http://www.fusioncharts.com/forum/Topic2105-47-1.aspx</link><description>yeah that seems to work</description><pubDate>Mon, 27 Aug 2007 14:55:56 GMT</pubDate><dc:creator>jlanza</dc:creator></item><item><title>RE: Problem with setDataURL and Ampersand</title><link>http://www.fusioncharts.com/forum/Topic2105-47-1.aspx</link><description>I have tried almost everything that makes logical sense to me.  I am wondering if maybe double encoding will do the trick: %2526...</description><pubDate>Mon, 27 Aug 2007 14:54:34 GMT</pubDate><dc:creator>jlanza</dc:creator></item><item><title>RE: Problem with setDataURL and Ampersand</title><link>http://www.fusioncharts.com/forum/Topic2105-47-1.aspx</link><description>I am running into the same issue. Any thoughts?</description><pubDate>Mon, 27 Aug 2007 11:44:10 GMT</pubDate><dc:creator>kpalania</dc:creator></item><item><title>Problem with setDataURL and Ampersand</title><link>http://www.fusioncharts.com/forum/Topic2105-47-1.aspx</link><description>I am using the setDataURL method and want to pass other parameters via GET query string.  All works fine except when one of the parameters is an ampersand.&lt;br&gt;&lt;br&gt;For example&lt;br&gt;&lt;br&gt;myChart.setDataURL(escape("/loadchart/chart?param1=" + param1 + "&amp;param2=" + param2));&lt;br&gt;myChart.render(id);&lt;br&gt;&lt;br&gt;It works fine when: param1 = 'string1', param2 = 'param2'&lt;br&gt;However, if fails when: param1 = 'strin&amp;g1', param2 = 'param2'&lt;br&gt;&lt;br&gt;Replacing &amp; with %26 does not fix the problem as I would have expected it would.&lt;br&gt;&lt;br&gt;Please help.</description><pubDate>Mon, 27 Aug 2007 09:46:18 GMT</pubDate><dc:creator>jlanza</dc:creator></item></channel></rss>