﻿<?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  / Java Script Drill Down Problem / 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:08:22 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Java Script Drill Down Problem</title><link>http://www.fusioncharts.com/forum/Topic442-35-1.aspx</link><description>Just one more change required- you need to enable the registerWithJS flag. See bold code below:&lt;/P&gt;&lt;P&gt;var Chart_YTDChart = new FusionCharts("Column3D.swf","YTDChart","900","300","1","&lt;FONT size=4&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;");</description><pubDate>Wed, 07 Mar 2007 23:46:48 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: Java Script Drill Down Problem</title><link>http://www.fusioncharts.com/forum/Topic442-35-1.aspx</link><description>I tried every method that I could decipher from blueprint! &lt;/P&gt;&lt;P&gt;I think you mean somthing like this!!! - Same error???&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;BR&gt;   &lt;BR&gt; &amp;lt;script language="JavaScript" src="FusionCharts.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;script LANGUAGE="JavaScript"&amp;gt;    &lt;BR&gt; &lt;BR&gt; function updateMTDChart()&lt;BR&gt; {&lt;BR&gt;  var strURL = "&lt;A href="http://192.168.0.2/scs400web/xml102.pgm?Location=00002%26Year=2007%26X=112046"&gt;http://192.168.0.2/scs400web/xml102.pgm?Location=00002%26Year=2007%26X=112046&lt;/A&gt;";&lt;BR&gt;  strURL = escape(strURL);&lt;BR&gt;  var chartObj = getChartFromId("MTDChart");&lt;BR&gt;  chartObj.setDataURL(strURL);&lt;BR&gt; }&lt;BR&gt; &lt;BR&gt; &amp;lt;/script&amp;gt;&lt;BR&gt;   &lt;BR&gt;&amp;lt;/head&amp;gt; &lt;BR&gt;    &lt;BR&gt;&amp;lt;body bgcolor="#ffffff"&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;BR&amp;gt;&lt;BR&gt; &lt;BR&gt;    &amp;lt;div id="Div_YTDChart" align="center"&amp;gt;The chart will appear within this DIV. This text will be replaced by the chart.&amp;lt;/div&amp;gt;&lt;BR&gt;    &amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;        var Chart_YTDChart = new FusionCharts("Column3D.swf","YTDChart","900","300","1","0");&lt;BR&gt;        Chart_YTDChart.setDataURL("&lt;A href="http://192.168.0.2/scs400web/xml101.pgm?Location=000321%26X=112046"&gt;http://192.168.0.2/scs400web/xml101.pgm?Location=000321%26X=112046&lt;/A&gt;");&lt;BR&gt;        Chart_YTDChart.render("Div_YTDChart");&lt;BR&gt;    &amp;lt;/script&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;BR&amp;gt;&lt;BR&gt; &lt;BR&gt;    &amp;lt;div id="Div_MTDChart" align="center"&amp;gt;The chart will appear within this DIV. This text will be replaced by the chart.&amp;lt;/div&amp;gt;&lt;BR&gt;    &amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;        var Chart_MTDChart = new FusionCharts("Column3D.swf","MTDChart","900","300","1","0");&lt;BR&gt;        Chart_MTDChart.setDataURL("&lt;A href="http://192.168.0.2/scs400web/xml102.pgm?Location=000321%26Year=2007%26X=112046"&gt;http://192.168.0.2/scs400web/xml102.pgm?Location=000321%26Year=2007%26X=112046&lt;/A&gt;");&lt;BR&gt;        Chart_MTDChart.render("Div_MTDChart");&lt;BR&gt;    &amp;lt;/script&amp;gt;&lt;BR&gt;   &lt;BR&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;[/code]&lt;/P&gt;&lt;P&gt;I am obiously trying to force this to work so I can get syntax right - will then pass variables!&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;S Travis</description><pubDate>Wed, 07 Mar 2007 12:30:44 GMT</pubDate><dc:creator>STravis</dc:creator></item><item><title>RE: Java Script Drill Down Problem</title><link>http://www.fusioncharts.com/forum/Topic442-35-1.aspx</link><description>In your function UpdateMTDChart, you've not first referenced the chart back from its ID. You need to use the getChartFromId(DOMId) function to get a reference back to chart. Only then, you can call it's methods.</description><pubDate>Mon, 05 Mar 2007 13:33:47 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>Java Script Drill Down Problem</title><link>http://www.fusioncharts.com/forum/Topic442-35-1.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I am attempting to get a handle on FusionCharts v3 using a product called Websmart accessing an AS/400 database.  I have crated a simple page using three graphs being populated by external XML calls.  All is working great and I am now trying to establish a simple drill down function.  Page is populated by a location number being passed via URL - right now I am simply attempting to change MTD graph to a different location by clicking ANY YTD graph bar.  The location change is hardcoded until I establish function  - I can then setup all necessary parameters to control graphs.  I have very little Javascript experience but have tried a number of methods that I have deciphered from blueprint - but when obvious errors removed seems to come back to - Object doesn't support this property or method.  I am just not getting it right!  Can anybody there take a look a code and point out obvious problems.  I can provide URL but would rather not publish to public.&lt;/P&gt;&lt;P&gt;Basic code - internal address &lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR&gt;    &amp;lt;head&amp;gt;&lt;BR&gt;    &lt;BR&gt;        &amp;lt;script language="JavaScript" src="FusionCharts.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR&gt;  &lt;BR&gt;   &amp;lt;Script LANGUAGE="JavaScript"&amp;gt;&lt;BR&gt;   function UpdateMTDChart(Year)&lt;BR&gt;   { &lt;BR&gt;    MTDChart.setDataURL("&lt;A href="http://192.168.0.2/scs400web/xml002.pgm?Location=27"&gt;http://192.168.0.2/scs400web/xml002.pgm?Location=27&lt;/A&gt;");&lt;BR&gt;   }&lt;BR&gt;  &amp;lt;/Script&amp;gt;&lt;BR&gt;  &lt;BR&gt;&amp;lt;/head&amp;gt; &lt;BR&gt;    &lt;BR&gt;&amp;lt;body bgcolor="#ffffff"&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;BR&amp;gt;&lt;BR&gt; &lt;BR&gt;    &amp;lt;div id="YTDChartDiv" align="center"&amp;gt;The chart will appear within this DIV. This text will be replaced by the chart.&amp;lt;/div&amp;gt;&lt;BR&gt;    &amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;        var YTDChart = new FusionCharts("Column3D.swf","YTDChartId","900","300","0","0");&lt;BR&gt;        YTDChart.setDataURL("&lt;A href="http://192.168.0.2/scs400web/xml001.pgm?Location=000321"&gt;http://192.168.0.2/scs400web/xml001.pgm?Location=000321&lt;/A&gt;");&lt;BR&gt;        YTDChart.render("YTDChartDiv");&lt;BR&gt;    &amp;lt;/script&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;BR&amp;gt;&lt;BR&gt; &lt;BR&gt;    &amp;lt;div id="MTDChartDiv" align="center"&amp;gt;The chart will appear within this DIV. This text will be replaced by the chart.&amp;lt;/div&amp;gt;&lt;BR&gt;    &amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;        var MTDChart = new FusionCharts("Column3D.swf","MTDChartId","900","300","0","0");&lt;BR&gt;        MTDChart.setDataURL("&lt;A href="http://192.168.0.2/scs400web/xml002.pgm?Location=000321"&gt;http://192.168.0.2/scs400web/xml002.pgm?Location=000321&lt;/A&gt;");&lt;BR&gt;        MTDChart.render("MTDChartDiv");&lt;BR&gt;    &amp;lt;/script&amp;gt;&lt;BR&gt;   &lt;BR&gt; &amp;lt;BR&amp;gt;&lt;BR&gt;   &lt;BR&gt;    &amp;lt;div id="DLYChartDiv" align="center"&amp;gt;The chart will appear within this DIV. This text will be replaced by the chart.&amp;lt;/div&amp;gt;&lt;BR&gt;    &amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;        var DLYChart = new FusionCharts("Column3D.swf","DLYChartId","900","300","0","0");&lt;BR&gt;        DLYChart.setDataURL("&lt;A href="http://192.168.0.2/scs400web/xml004.pgm?Location=000321"&gt;http://192.168.0.2/scs400web/xml004.pgm?Location=000321&lt;/A&gt;");&lt;BR&gt;        DLYChart.render("DLYChartDiv");&lt;BR&gt;    &amp;lt;/script&amp;gt;   &lt;BR&gt;  &lt;BR&gt; &amp;lt;BR&amp;gt;&lt;BR&gt;  &lt;BR&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;Thanks for your help!</description><pubDate>Sat, 03 Mar 2007 15:00:40 GMT</pubDate><dc:creator>STravis</dc:creator></item></channel></rss>