﻿<?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  / Javascript error for 'save as image' / 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>Sun, 07 Sep 2008 19:11:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>Hi &lt;A class=bgBoldLinks id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_smAuthorName &amp;#111;nmouseover="&amp;#119;indow.status = &amp;#119;indow.location;return true;" title="View karenw's Profile..." &amp;#111;nmouseout="&amp;#119;indow.status='';return true;" href="void('');"&gt;karenw&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you please send us the code that you are using? and also specify which technology you are using, like ASP/PHP/.NEt etc.&lt;/P&gt;&lt;P&gt;Please also make sure to let the chart finish rendering (can be tracked using FC_Rendered() function) before you call save as image JS API.&lt;NOSCRIPT&gt;&lt;a title="View karenw's Profile..." class="bgBoldLinks" href="UserInfo840.aspx"&gt;karenw&lt;/a&gt;&lt;/NOSCRIPT&gt;</description><pubDate>Wed, 02 Apr 2008 01:00:15 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>I am having the same error and I do have v.3.0.6 and have wasted nearly a whole day on this.:w00t:</description><pubDate>Tue, 01 Apr 2008 22:29:30 GMT</pubDate><dc:creator>karenw</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>Hi Sudipto,&lt;br&gt;&lt;br&gt; You are right .Actually i looked  into the version of swf files it was of version 3.0.3 .I copied the latest swf files .It is working fine now. I have one question. I would like to know the link where all methods are given like FC_render etc.Can you please provide me. &lt;br&gt;&lt;br&gt;Thanks a lot. &lt;br&gt;</description><pubDate>Wed, 12 Mar 2008 00:38:52 GMT</pubDate><dc:creator>dharmendra</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;There are some functions in FusionCharts which are exposed and can be accessed from the chart itself. Flash techies call this externalInterface functions. We can use JavaScript to call these functions directly. saveAsImage() is one of these functions. Hence, you would not get this entry in FusionCharts.js. But, if you use FusionCharts SWFs whose version is v3.0.6 you would definitely get this featute. Could you please check whether you have the specified version of chart SWF files. To know your version to this precision 3.x.x, please render a chart with debug mode on. In the debug window you would get the version info.</description><pubDate>Wed, 12 Mar 2008 00:20:06 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>Hi Sudipto,&lt;br&gt;I have Adobe flash version 9.I am running the same on server. Even though it is not working . Can you please tell me saveAsImage function should be present in FusionCharts.js or not. If yes ,then it is not available in evaluation version.&lt;br&gt;I am also attached the code.Please look into this .&lt;br&gt;&lt;br&gt;&lt;br&gt;      function saveChart(){&lt;br&gt;         //Get chart from its ID&lt;br&gt;         var chartToPrint = getChartFromId("chart1Id");&lt;br&gt;		  chartToPrint.saveAsImage();&lt;br&gt;      }&lt;br&gt;   &lt;br&gt;   and &lt;br&gt;   &lt;br&gt;          var chart1 = new FusionCharts("../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");&lt;br&gt;      chart1.setDataXML("&lt;chart imageSave='1' imageSaveURL='http://localhost:8080/jsp-examples/FusionCharts/MyFirstChart/ImageSaving/FusionChartsSave.jsp'&gt;&lt;set label='A' value='10' /&gt;&lt;set label='B' value='11' /&gt;&lt;/chart&gt;");&lt;br&gt;      chart1.render("chart1div");&lt;br&gt;  &lt;br&gt;   and the data.xml is &lt;br&gt;chart imageSave='1' imageSaveURL='http://localhost:8080/jsp-examples/FusionCharts/MyFirstChart/ImageSaving/FusionChartsSave.jsp'&gt;&lt;set label='A' value='10' /&gt;&lt;set label='B' value='11' /&gt;    &lt;br&gt;&lt;br&gt;&lt;/chart&gt;&lt;br&gt;   &lt;br&gt;Everything is in the path.Please look into this.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 11 Mar 2008 09:42:58 GMT</pubDate><dc:creator>dharmendra</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;No single feature is disabled in eval version. There might be som other issues. Also please check if you are running the application from a server. Or you might need to set up Flash Player security options online from Adobe's website.</description><pubDate>Tue, 11 Mar 2008 06:53:43 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>Hi ,&lt;br&gt;&lt;br&gt;Actually, i am using the evaluation version of v3 which is presently available at your site . And I also used the same information  as you provided the link for saveAsImage function . I copy the whole example as it is mentioned in the link. It fails at the line chartToPrint.saveAsImage();and gives the error 'chartToPrint.saveAsImage() is not a function' in error console.So, I just want to confirm that this facility (save as image ) is available in evaluation version or not. If not ,then how can i achieve this facility.Please provide me exact solution.&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Mon, 10 Mar 2008 08:08:17 GMT</pubDate><dc:creator>dharmendra</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;You would need the swf of v3.0.6. The javascript file remains the same. Please read this page in our documentaion for more info:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.fusioncharts.com/docs/Contents/JS_saveAsImage.html"&gt;http://www.fusioncharts.com/docs/Contents/JS_saveAsImage.html&lt;/A&gt;</description><pubDate>Fri, 07 Mar 2008 07:50:13 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>Hi,&lt;br&gt;  &lt;br&gt;  Can you please provide the me the code of saveAsImage() function of FusionCharts.js which is updated in v3.0.6?&lt;br&gt;I will be very thankful to you.&lt;br&gt;&lt;br&gt;Thanks &lt;br&gt;</description><pubDate>Fri, 07 Mar 2008 00:54:25 GMT</pubDate><dc:creator>dharmendra</dc:creator></item><item><title>RE: Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>You need to use v3.0.6</description><pubDate>Thu, 06 Mar 2008 12:41:45 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>Javascript error for 'save as image'</title><link>http://www.fusioncharts.com/forum/Topic4958-35-1.aspx</link><description>I am tring to to save the chart as an image .I also included the FusionCharts.js properly. even though it is throwing javascript error like chartToPrint.saveAsImage() function is not defined. I am using fusion chart 2.0.5 version.I searched saveAsImage() function in FusionCharts.js  .It was not present there. Anyone can provide me the FusionCharts.js which includes saveAsImage () function Or any other solution . &lt;br&gt;&lt;br&gt;Thanks in advance&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 06 Mar 2008 07:13:45 GMT</pubDate><dc:creator>dharmendra</dc:creator></item></channel></rss>