﻿<?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   / trying to pass variables in XML to javascript through link / 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:37:28 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: trying to pass variables in XML to javascript through link</title><link>http://www.fusioncharts.com/forum/Topic3893-47-1.aspx</link><description>One way to check this would be to switch the debug mode of chart to on. That'll show the link that chart has received.</description><pubDate>Tue, 22 Apr 2008 11:42:59 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: trying to pass variables in XML to javascript through link</title><link>http://www.fusioncharts.com/forum/Topic3893-47-1.aspx</link><description>Hi,  &lt;/P&gt;&lt;P&gt;I'm having a similar problem - here is my XML:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&amp;lt;chart caption='Sales Points' showPercentageValues='1' animation='true' pieSliceDepth='30' showBorder='1' formatNumberScale='0' &amp;gt;&amp;lt;set label='NoArea' value='14' link='JavaScript:SetNextLevel(%26apos;5%26apos;,%26apos;%26apos;,%26apos;1|DIV%26apos;,%26apos;0%26apos;)'&amp;gt;&amp;lt;/chart&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Does anyone know why this isn't working? &lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Wed, 16 Apr 2008 09:30:48 GMT</pubDate><dc:creator>Skells</dc:creator></item><item><title>RE: trying to pass variables in XML to javascript through link</title><link>http://www.fusioncharts.com/forum/Topic3893-47-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;You need to put the string values passed to javascript functions within quotes. quotes need to be encoded.&lt;/P&gt;&lt;P&gt;try like this :&lt;BR&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN id=_ctl1_ctlTopic&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color=#ff1111&gt;link='displayArea(%26apos;Bothell%26apos;,%26apos;HDS%26apos;)'&lt;/FONT&gt; &lt;/PRE&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Thu, 24 Jan 2008 01:23:21 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>trying to pass variables in XML to javascript through link</title><link>http://www.fusioncharts.com/forum/Topic3893-47-1.aspx</link><description>I am having some difficulties, I am creating the XML string and passing some parameters through the link='' after setting data:&lt;/P&gt;&lt;P&gt;exampl:&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt; &amp;lt;script type="text/javascript"&amp;gt; &lt;BR&gt;            Ext.onReady(function() {&lt;BR&gt;  var chart_HDS = new FusionCharts("flash/MSColumn3D.swf", "HDS", "800", "300", "0", "1");&lt;BR&gt;    chart_HDS.setDataXML("&amp;lt;chart caption='Datacenter total hds Storage vs. Free Storage' xAxisName='Datacenters' yAxisName='Storage (GB)' showValues='0' labelDisplay='ROTATE' slantLabels='1'&amp;gt;&amp;lt;categories&amp;gt;&amp;lt;category name='Bothell' /&amp;gt;&amp;lt;category name='Dallas-ITO' /&amp;gt;&amp;lt;category name='Windward' /&amp;gt;&amp;lt;category name='WWDC-Lab' /&amp;gt;&amp;lt;/categories&amp;gt;&amp;lt;dataset seriesName='phys'&amp;gt;&amp;lt;set value='1149104' &lt;FONT color=#ff1111&gt;link='javascript:displayArea(Bothell,HDS)'&lt;/FONT&gt; /&amp;gt;&amp;lt;set value='313606' link='javascript:displayArea(Dallas-ITO,HDS)' /&amp;gt;&amp;lt;set value='1057704' link='javascript:displayArea(Windward,HDS)' /&amp;gt;&amp;lt;set value='53799' link='javascript:displayArea(WWDC-Lab,HDS)' /&amp;gt;&amp;lt;/dataset&amp;gt;&amp;lt;dataset seriesName='free'&amp;gt;&amp;lt;set value='273591' /&amp;gt;&amp;lt;set value='14305'  /&amp;gt;&amp;lt;set value='38439' /&amp;gt;&amp;lt;set value='11276'  /&amp;gt;&amp;lt;/dataset&amp;gt;&amp;lt;/chart&amp;gt;")&lt;BR&gt;                chart_HDS.addParam("wmode", "transparent");&lt;BR&gt;  chart_HDS.render("HDSDiv");&lt;BR&gt;            });&lt;BR&gt; &amp;lt;/script&amp;gt;  &lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;As you can see from the red Highlight I have a function called displayArea(local,stor) {} , this is expecting to have 2 parameters passed to it, which I belive I am doing by passing (Bothell, HDS) after calling the function in the XML string. What am I doing incorrect here. The error I get is "Bothell is not defined"</description><pubDate>Wed, 16 Jan 2008 15:38:37 GMT</pubDate><dc:creator>mrras25</dc:creator></item></channel></rss>