﻿<?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 / XML Issue  / JS:updateChart, single-quote/apostrophe / 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, 02 Dec 2008 07:39:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: JS:updateChart, single-quote/apostrophe</title><link>http://www.fusioncharts.com/forum/Topic3609-41-1.aspx</link><description>I am getting the problem when i drill down a chart &lt;br&gt;&amp; unable to drilldown the updated chart&lt;br&gt;&lt;br&gt;your below change solves my problem&lt;br&gt;&lt;br&gt;chartObj.SetVariable("_root.newData",strXML.replace(/%26/g, "&amp;"));&lt;br&gt;&lt;br&gt;&lt;br&gt;Good Work&lt;br&gt;&lt;br&gt;Thank you so much yavorosky&lt;br&gt;&lt;br&gt;i am breaking my head for 2 days&lt;br&gt;</description><pubDate>Wed, 10 Sep 2008 05:30:12 GMT</pubDate><dc:creator>BaluThambi</dc:creator></item><item><title>RE: JS:updateChart, single-quote/apostrophe</title><link>http://www.fusioncharts.com/forum/Topic3609-41-1.aspx</link><description>I don't know if this is the best solution, but it works in FF and IE. &lt;br&gt;&lt;br&gt;In FusionCharts.js I modified the infosoftglobal.FusionChartsUtil.updateChartXML function from this:&lt;br&gt;&lt;br&gt;[quote]chartObj.SetVariable("_root.newData",strXML);[/quote]&lt;br&gt;&lt;br&gt;to this:&lt;br&gt;&lt;br&gt;[quote]chartObj.SetVariable("_root.newData",strXML.replace(/%26/g, "&amp;"));[/quote]&lt;br&gt;&lt;br&gt;Seems to work. &lt;br&gt;&lt;br&gt;I also modified the getProductXML function slightly to account for other special characters:&lt;br&gt;&lt;br&gt;[quote]thisCat = categories[c].replace(/\'/g, "%26apos;");&lt;br&gt;	thisCat = thisCat.replace(/\&amp;/g, "%26");&lt;br&gt;	thisCat = thisCat.replace(/\"/g, "%26quot;");&lt;br&gt;	thisCat = thisCat.replace(/\[LT SYMBOL]/g, "%26lt;");&lt;br&gt;	thisCat = thisCat.replace(/\&gt;/g, "%26gt;");&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;Where [LT symbol] is the "less than" symbol. Like I said, seems to work, but don't know if that's the best solution. If anyone else has ideas, please let me know. Thanks.</description><pubDate>Fri, 04 Jan 2008 16:56:53 GMT</pubDate><dc:creator>yavorosky</dc:creator></item><item><title>JS:updateChart, single-quote/apostrophe</title><link>http://www.fusioncharts.com/forum/Topic3609-41-1.aspx</link><description>using the example application (FusionsCharts and Javascript), I added&lt;br&gt;&lt;br&gt;[quote]var1.replace(/\'/g, "%26apos;");[/quote] &lt;br&gt;to getProductXML() and used var1 in seriesName of the dataset tag so it does include single-quotes. &lt;br&gt;&lt;br&gt;On the initial display the legend of the chart appears correctly, e.g., "Bob's Bistro"; however, when I click a form item and trigger updateChart(), the new chart displays "Bob%26apos;s Bistro". &lt;br&gt;&lt;br&gt;Any ideas?</description><pubDate>Fri, 04 Jan 2008 11:07:20 GMT</pubDate><dc:creator>yavorosky</dc:creator></item></channel></rss>