pritishpm Report post Posted August 7, 2008 (edited) Hi , Please see that i have called a java script function on button click. function saveImage(){ var str = getChartFromId('myFirst'); str.saveAsImage(); } i had also included FusionCharts.js in my code but then also iam getting str.saveAsImage is not a function Error please help... Edited August 7, 2008 by Guest Share this post Link to post Share on other sites
Rahul Kumar Report post Posted August 7, 2008 (edited) Hi, Could you please make sure that you are using FusionCharts v3.0.6. Edited August 7, 2008 by Guest Share this post Link to post Share on other sites
pritishpm Report post Posted August 8, 2008 Hi Rahul, We r using FusionCharts v3.0.6 and it is working. But I noticed that the chart has to generated by using FusionChart function in FusionCharts.js Else it won't work. I will not be using FusionCharts.js to create Chart. Please Help. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 8, 2008 Hi, In case you are not using JavaScript embedding method, please add "?registerWithJS=1" after the chart SWF file you specify. e.g. "Column3D.swf?registerWithJS=1" This would allow the code to access the saveAsImage() function of the chart. Share this post Link to post Share on other sites
pritishpm Report post Posted August 13, 2008 Thanks Its working for me Share this post Link to post Share on other sites
sachin257 Report post Posted January 18, 2009 Dear Sir, Please help still i am not ablt to save the images. As you said, I replaced FusionChartsRenderer.zip files in includes folder which you posted on 22-12-2008. My Java Verion is : j2sdk1.4.2_05. Jboss Version : jboss-4.0.2 Console Error: 13:02:39,807 INFO [server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 19s:507ms 13:03:54,632 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: The method boolToNum(Boolean) in the type FusionChartsRenderer_jsp is not applicable for the arguments (boolean) An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: The method boolToNum(Boolean) in the type FusionChartsRenderer_jsp is not applicable for the arguments (boolean) at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.ImageExample_jsp._jspService(org.apache.jsp.ImageExample_jsp:101) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) Please guide me to solve the issues. If possible please post the complete war files. Regds, Sachin.H Share this post Link to post Share on other sites
srividya_sharma Report post Posted January 18, 2009 Please download the zip file for jdk 1.4 from this topic : http://www.fusioncharts.com/forum/Topic6497-33-2.aspx Post #11101 Share this post Link to post Share on other sites