﻿<?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  / "'ChartMain' is undefined" JavaScript error / 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>Fri, 10 Oct 2008 15:49:30 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: "'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>Hi,  &lt;/P&gt;&lt;P&gt;Could you please use the latest FusionMaps.js attached here? This is released with FusionMaps v.3.0.5. The version of this FusionMaps.js is 1.3 (1st April 2008).</description><pubDate>Tue, 13 May 2008 02:33:55 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: "'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>Hi Sudipto,&lt;/P&gt;&lt;P&gt;Bill might also be wondering what the latest version of FusionMaps is from his last post.  Actually I'm having the same exact problem as Bill with FusionMaps in SharePoint.   The maps are cannot be referenced via JavaScript and just throw that JavaScript error when attempting to activate JS on them.&lt;/P&gt;&lt;P&gt;FusionCharts is working fine though in my sharepoint with latest FusionCharts.js.</description><pubDate>Mon, 12 May 2008 14:38:56 GMT</pubDate><dc:creator>rwuhrman</dc:creator></item><item><title>RE: "'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>The latest version is  1.2 (1st November, 2007),modified 21 Dec 2007.&lt;P&gt;You can have it downloaded from &lt;A href="http://www.fusioncharts.com/download.asp"&gt;www.fusioncharts.com/download.asp&lt;/A&gt; with the Evaluation version.</description><pubDate>Wed, 16 Apr 2008 08:35:53 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: "'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>What is the latest version for FusionMaps.js?  I'm getting similar errors using registerJs w/ my maps (bad enough that I can't use that function.)&lt;br&gt;&lt;br&gt;The map is in a .NET application - so I'm thinking issue is the same.&lt;br&gt;&lt;br&gt;The fusionMaps.js file I have (just downloaded last week) is from 6/2007.</description><pubDate>Wed, 16 Apr 2008 07:11:38 GMT</pubDate><dc:creator>BillIB</dc:creator></item><item><title>RE: "'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;You can download the latest version of FusionCharts.js that comes with our release 3.0.5+. At the top of the file (if you open it in an editor) version information is given. The latest version is  1.2 (1st November, 2007),modified 21 Dec 2007.&lt;/P&gt;&lt;P&gt;You can have it downloaded from &lt;A href="http://www.fusioncharts.com/download.asp"&gt;www.fusioncharts.com/download.asp&lt;/A&gt; with the Evaluation version.</description><pubDate>Fri, 15 Feb 2008 23:12:17 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: "'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>Hi!&lt;P&gt;I am not using AJAX anf the FusionCharts.js file was created December 7. according to it's properties, but it has no version info. I am also using FusionCharts evaluation version (while waiting for my company to buy the full version) and in those folders the FusionCharts.js file was created January 28. Is there any other way I can tell if I have the latest version?&lt;P&gt;How do I download the laters version of FusionCharts.js? Is there a place on your site where customers can log in and download updates?</description><pubDate>Tue, 12 Feb 2008 02:36:05 GMT</pubDate><dc:creator>DrLeary</dc:creator></item><item><title>RE: "'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;Make sure that you are using the latest FusionChart.js released on 22 Dec 2007 with FusionCharts v3.0.5 which has some IE related fixes, to solve the IE &amp;lt;FORM&amp;gt; issue. Your error might fall into that since you are using ASP.NET.&lt;/P&gt;&lt;P&gt;Do you update your chart using setDataXML/setDataURL using JavaScript ? If not you may not use registerWithJS option. This option is needed when you want to, using JavaScript, feed data to or get data from (in case of PowerCharts and FusionGadgets) an already loaded chart.&lt;/P&gt;&lt;P&gt;Can you please also tell me wheher you are using ASP.NET.AJAX?</description><pubDate>Thu, 31 Jan 2008 04:34:00 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>"'ChartMain' is undefined" JavaScript error</title><link>http://www.fusioncharts.com/forum/Topic4274-35-1.aspx</link><description>Hi!&lt;/P&gt;&lt;P&gt;I'm working on an aspx page in SharePoint with some FusionCharts on, and suddenly I notice this little JavaScript warning icon down on the bottom of my browser. It states that "'ChartMain' is undefined", but everything works just fine... I want to get rid of the error though, because it makes the page look less professional...&lt;/P&gt;&lt;P&gt;Looking at the source of the page reveals nothing usefull really...&lt;/P&gt;&lt;P&gt;&amp;lt;!-- START Script Block for Chart ChartMain --&amp;gt;&lt;BR&gt;&amp;lt;div id='ChartMainDiv' align='center'&amp;gt;&lt;BR&gt;Chart.&lt;BR&gt;&amp;lt;/div&amp;gt;&lt;BR&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR&gt;var chart_ChartMain = new FusionCharts("/kpi/KPIsource/AngularGauge.swf", "ChartMain", "300", "150", "0", "1");&lt;BR&gt;chart_ChartMain.setDataXML("&amp;lt;chart decimalPrecision='1' lowerLimit='0' upperLimit='5' numberSuffix='' chartTopMargin='10' bgColor='ffffff' showBorder='0' chartBottomMargin='20' basefontColor='000000' toolTipBgColor='ffffff' showValue='1'&amp;gt;&amp;lt;colorRange&amp;gt;&amp;lt;color minValue='0' maxValue='1.99' code='FF654F' /&amp;gt;&amp;lt;color minValue='2' maxValue='5' code='8BBA00' /&amp;gt;&amp;lt;/colorRange&amp;gt;&amp;lt;dials&amp;gt;&amp;lt;dial value='0.41' rearExtension='10' /&amp;gt;&amp;lt;/dials&amp;gt;&amp;lt;/chart&amp;gt;");&lt;BR&gt;chart_ChartMain.render("ChartMainDiv");&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&amp;lt;!-- END Script Block for Chart ChartMain --&amp;gt;&lt;/P&gt;&lt;P&gt;As you can see I've set the Register with JavaScript flag to true, but that doesn't help. The weird thing is, a moment ago the error was about another chart, saying "'ChartDepI' is undefined", so I went to my code and made sure the register with JavaScript flag was set to true for all the charts on the page. That's when the error changed to 'ChartMain' which is the first chart on the page.&lt;/P&gt;&lt;P&gt;Any ideas what this might be?</description><pubDate>Thu, 31 Jan 2008 03:56:32 GMT</pubDate><dc:creator>DrLeary</dc:creator></item></channel></rss>