﻿<?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   / Sequential Load with Javascript / 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 06:50:54 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Sequential Load with Javascript</title><link>http://www.fusioncharts.com/forum/Topic6262-47-1.aspx</link><description>Hi folks,&lt;br&gt;&lt;br&gt;Just in case anyone was interested, this is how I implemented the sequential loading based on the example given. This assumes there to be HTML elements named myid1, myid2, myid3 up to the value of iMaxCharts. I could also have made it check for DOM objects to evaluate the maximum number of charts instead of the iMaxCharts variable. &lt;br&gt;&lt;br&gt;var iChart = 1;&lt;br&gt;var iMaxCharts = 3;&lt;br&gt;&lt;br&gt;function FC_Rendered(){&lt;br&gt;  if (iChart &lt;= iMaxCharts) {&lt;br&gt;    var oChart = new FusionCharts("/Include/Charts/Column3D.swf", "chart_myid" + iChart, "100%", "100%", "0", "1");&lt;br&gt;    oChart.setDataURL("MyXMLDataSource.aspx?chart=" + iChart);		   &lt;br&gt;    oChart.render("myid" + iChart);&lt;br&gt;    iChart++&lt;br&gt;  }&lt;br&gt;}&lt;br&gt;onload = function() {&lt;br&gt;  FC_Rendered()&lt;br&gt;}</description><pubDate>Tue, 27 May 2008 02:13:20 GMT</pubDate><dc:creator>ESOFX - Michael</dc:creator></item><item><title>RE: Sequential Load with Javascript</title><link>http://www.fusioncharts.com/forum/Topic6262-47-1.aspx</link><description>Please see http://www.fusioncharts.com/docs/Contents/JS_Overview.html</description><pubDate>Fri, 23 May 2008 05:12:28 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: Sequential Load with Javascript</title><link>http://www.fusioncharts.com/forum/Topic6262-47-1.aspx</link><description>and how would I access such?&lt;br&gt;&lt;br&gt;oChart.onChartRendered() = function () { //do something }&lt;br&gt;&lt;br&gt;??</description><pubDate>Sun, 18 May 2008 22:15:43 GMT</pubDate><dc:creator>ESOFX - Michael</dc:creator></item><item><title>RE: Sequential Load with Javascript</title><link>http://www.fusioncharts.com/forum/Topic6262-47-1.aspx</link><description>We raise 2 events in FusionCharts free:&lt;br&gt;- Once when the chart is loaded (SWF)&lt;br&gt;- Once when the chart is rendered (SWF loaded, XML loaded, chart rendered)</description><pubDate>Sun, 18 May 2008 10:19:35 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: Sequential Load with Javascript</title><link>http://www.fusioncharts.com/forum/Topic6262-47-1.aspx</link><description>A call back from the Flash to say it is finished loading is most likely there, I just want to know how I can access it from the Javascript so I can sequentially display these charts.&lt;br&gt;&lt;br&gt;Anyone?</description><pubDate>Sat, 17 May 2008 19:40:16 GMT</pubDate><dc:creator>ESOFX - Michael</dc:creator></item><item><title>Sequential Load with Javascript</title><link>http://www.fusioncharts.com/forum/Topic6262-47-1.aspx</link><description>Are there any callback routines or anything to state that the XML has completed loading?&lt;br&gt;&lt;br&gt;I need to display one chart after another is loaded. There's a total of 12 charts on my page and each represent a significant amount of load on the SQL Server backend. In order to reduce the load, I want to show each chart sequentially.&lt;br&gt;&lt;br&gt;SetTimeout will not be sufficient as the time will vary significantly. I know Actionscript can communicate directly with Javascript so it would be possible.&lt;br&gt;&lt;br&gt;Thanks in advance.</description><pubDate>Wed, 14 May 2008 23:52:08 GMT</pubDate><dc:creator>ESOFX - Michael</dc:creator></item></channel></rss>