﻿<?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 / Bug Reports  / Fusionchart cannot re-create chart on FireFox / 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, 15 Oct 2008 22:01:20 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Fusionchart cannot re-create chart on FireFox</title><link>http://www.fusioncharts.com/forum/Topic6248-6-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Could you please provide different and unique Div ID and chart ID? &lt;/P&gt;&lt;P&gt;Same id is causing a conflict between the 2 HTML elements ( DIV and &amp;lt;Embed&amp;gt; in FF/&amp;lt;object&amp;gt; in IE) when JavaScript is accessing the DOM. In IE luckly the first Element (the DIV) is updated. So you get to see the chart&amp;gt; While in FF the &amp;lt;embed&amp;gt; Element is getting accessed and the new code for chart is getting appened in the &amp;lt;embed&amp;gt; object itself withour replacing the old &amp;lt;embed&amp;gt; element. So the old chart remains in FF and the new entry is just igonred by FF as nested embed elements is not valid.&lt;/P&gt;&lt;P&gt;So the solution is simply to provide different and unique Div ID and chart ID:&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;     var chart = new FusionCharts("Area2D.swf", "&lt;STRONG&gt;chartId&lt;/STRONG&gt;", 500, 500, "0", "0");&lt;BR&gt;     chart.setDataXML(chartXML);&lt;BR&gt;     chart.render("&lt;STRONG&gt;chartdiv&lt;/STRONG&gt;");</description><pubDate>Mon, 19 May 2008 05:25:57 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>Fusionchart cannot re-create chart on FireFox</title><link>http://www.fusioncharts.com/forum/Topic6248-6-1.aspx</link><description>I am using php with professional fusionchart. I need re-create chart when user choose value from a select box. My code work as well on IE. But I cannot re-create new chart on FireFox. Firefox always show old chart that it created on the firsttime. I try to  debug javascript and saw that it always call initChart function to re-create chart. But Firefox doesn't have any changed. Please help me to solve it ASAP. I have to fix this bug for my customer.&lt;P&gt;Here is my code :&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR&gt;&amp;lt;head&amp;gt;&lt;BR&gt;&amp;lt;title&amp;gt; new document &amp;lt;/title&amp;gt;&lt;BR&gt;&amp;lt;/head&amp;gt;&lt;BR&gt;&amp;lt;script&amp;gt;&lt;BR&gt;  function onSelectChange() {&lt;BR&gt;         var chartXML ='';&lt;BR&gt;        //get chartXML from server and init chart &lt;BR&gt;        //...&lt;BR&gt;        //...&lt;/P&gt;&lt;P&gt;        initChart(chartXML);&lt;BR&gt;  }&lt;/P&gt;&lt;P&gt;&lt;BR&gt;  function initChart(chartXML) {&lt;BR&gt;     var chart = document.getElementById("chartdiv");     &lt;BR&gt;     chart = new FusionCharts("fusion/Charts/Area2D.swf", "chartdiv", 500, 500, "0", "0");&lt;BR&gt;     chart.setDataXML(chartXML);&lt;BR&gt;     chartXML = '';&lt;BR&gt;     chart.render("chartdiv");&lt;BR&gt;  }&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;BR&gt;&amp;lt;body&amp;gt;&lt;BR&gt;&amp;lt;form name="form1"&amp;gt;&lt;BR&gt;&amp;lt;select name="chart" onchange="onSelectChange()"&amp;gt;&lt;BR&gt; &amp;lt;option value=1&amp;gt;1&amp;lt;/option&amp;gt;&lt;BR&gt; &amp;lt;option value=2&amp;gt;2&amp;lt;/option&amp;gt;&lt;BR&gt;&amp;lt;/select&amp;gt;&lt;BR&gt;&amp;lt;table width="100%"&amp;gt;&lt;BR&gt; &amp;lt;tr height="100%"&amp;gt;&lt;BR&gt; &amp;lt;td height="100%" valign="top" class="block" align="center"&amp;gt;&amp;lt;div id="chartdiv" style="width:100%;height:100%;"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&lt;BR&gt;  &amp;lt;/tr&amp;gt;&lt;BR&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;BR&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;</description><pubDate>Tue, 13 May 2008 13:05:05 GMT</pubDate><dc:creator>thaiduong</dc:creator></item></channel></rss>