﻿<?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  / Change between diffrent XML Files with Button / 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:05:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Change between diffrent XML Files with Button</title><link>http://www.fusioncharts.com/forum/Topic452-35-1.aspx</link><description>Ok. Thank you. I will realize it with php. &lt;/P&gt;&lt;P&gt;Thx</description><pubDate>Wed, 07 Mar 2007 05:31:13 GMT</pubDate><dc:creator>simsonic</dc:creator></item><item><title>RE: Change between diffrent XML Files with Button</title><link>http://www.fusioncharts.com/forum/Topic452-35-1.aspx</link><description>I'm afraid you cannot do this in Instrumentation v2 - we'll be introducing this in Instrumentation v3.</description><pubDate>Wed, 07 Mar 2007 05:14:45 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>Change between diffrent XML Files with Button</title><link>http://www.fusioncharts.com/forum/Topic452-35-1.aspx</link><description>Hi. Is there any option to change the XML files with the normally buttons like in the previews?&lt;/P&gt;&lt;P&gt;Like in the FusionCharts_IS2_Ent Documentation under FusionCharts_IS2_Ent/HelpDocs/Index.html  &lt;/P&gt;&lt;P&gt;In this case the Buttons change the whole XML Data. But i just want to change the XML File Variable.&lt;/P&gt;&lt;P&gt;I tried it but i failed.&lt;/P&gt;&lt;P&gt;[code] &amp;lt;HTML&amp;gt;&lt;BR&gt;&amp;lt;HEAD&amp;gt;&lt;BR&gt;&amp;lt;TITLE&amp;gt;FusionCharts Client Side Dynamic Chart&amp;lt;/TITLE&amp;gt;&lt;BR&gt;&amp;lt;LINK REL=stylesheet HREF="Style.css" /&amp;gt;&lt;BR&gt;&amp;lt;SCRIPT LANGUAGE="JavaScript"&amp;gt;&lt;BR&gt;&amp;lt;!--&lt;BR&gt;function setFCNewData(objFlash, strXML)&lt;BR&gt;{&lt;BR&gt;    //This function updates the entire XML data for a chart.&lt;BR&gt;    //Get a reference to the movie&lt;BR&gt;    var FCObject="FI2_Angular";&lt;BR&gt;    //Set the data&lt;BR&gt;    //Set dataURL to null&lt;BR&gt;    FCObject.SetVariable("_root.dataURL","");&lt;BR&gt;    //Set the flag&lt;BR&gt;    FCObject.SetVariable("_root.isNewData","1");&lt;BR&gt;    //Set the actual data&lt;BR&gt;    FCObject.SetVariable("_root.newData",strXML);&lt;BR&gt;    //Go to the required frame&lt;BR&gt;    FCObject.TGotoLabel('/','JavaScriptHandler');&lt;BR&gt;}&lt;BR&gt;function getObject(objectName) {&lt;BR&gt;    if (navigator.appName.indexOf ("Microsoft") !=-1) {&lt;BR&gt;        return window[objectName]&lt;BR&gt;    } else {&lt;BR&gt;        return &amp;#100;ocument.embeds[objectName];&lt;BR&gt;    }&lt;BR&gt;}&lt;BR&gt;//Store the XML data in local variables&lt;BR&gt;//Download to Sales Ratio&lt;BR&gt;var strXML1 = "MTD.xml";&lt;BR&gt;//Cost per click&lt;BR&gt;var strXML2 = "YTD.xml";&lt;BR&gt;//--&amp;gt;&lt;BR&gt;&amp;lt;/SCRIPT&amp;gt;&lt;BR&gt;&amp;lt;/HEAD&amp;gt;&lt;BR&gt;&amp;lt;BODY bgcolor="#FFFFFF"&amp;gt;&lt;BR&gt;... HTML Code ...&lt;BR&gt;&amp;lt;OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"&lt;BR&gt; codebase="&lt;A href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"&gt;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&lt;/A&gt;"&lt;BR&gt; WIDTH="180" HEIGHT="140" ALIGN=""&amp;gt;&lt;BR&gt; &amp;lt;PARAM NAME=movie VALUE="FI2_Angular.swf"&amp;gt;&lt;BR&gt; &amp;lt;PARAM NAME=quality VALUE=high&amp;gt;&lt;BR&gt; &amp;lt;PARAM NAME=FlashVars Value="&amp;amp;dataURL=data.xml&amp;amp;chartWidth=180&amp;amp;chartHeight=140"&amp;gt;&lt;BR&gt; &amp;lt;EMBED src="FI2_Angular.swf" FlashVars="&amp;amp;dataURL=data.xml&amp;amp;chartWidth=180&amp;amp;chartHeight=140" quality=high bgcolor=#FFFFFF  WIDTH="180" HEIGHT="140" ALIGN=""&lt;BR&gt; TYPE="application/x-shockwave-flash" PLUGINSPAGE="&lt;A href='http://www.macromedia.com/go/getflashplayer"&gt;&lt;/EMBED'&gt;http://www.macromedia.com/go/getflashplayer"&amp;gt;&amp;lt;/EMBED&lt;/A&gt;&amp;gt;&lt;BR&gt;&amp;lt;/OBJECT&amp;gt;&lt;BR&gt;... HTML Code ...&lt;BR&gt;&amp;lt;input type="submit" class="button" value="Download To Sales Conversion" &amp;#111;nclick="setFCNewData('FI2_Angular', strXML1);"&amp;gt;&lt;BR&gt;&amp;lt;br&amp;gt;&lt;BR&gt;&amp;lt;input type="submit" class="button" value="Cost Per Download" &amp;#111;nclick="setFCNewData('FI2_Angular', strXML2);"&amp;gt;&lt;BR&gt;... HTML Code ...&lt;BR&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;&amp;lt;/html&amp;gt; [/code]&lt;/P&gt;&lt;P&gt;THX for Help. Greetings from Switzerland</description><pubDate>Tue, 06 Mar 2007 10:28:54 GMT</pubDate><dc:creator>simsonic</dc:creator></item></channel></rss>