﻿<?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 / FusionCharts and JSP  / createChartHTML and registerWithJS / 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, 07 Jan 2009 15:20:10 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: createChartHTML and registerWithJS</title><link>http://www.fusioncharts.com/forum/Topic8212-33-1.aspx</link><description>Hi,&lt;br&gt;I am working on rendering of fusion charts on portlets (liferay-tomcat).&lt;br&gt;I actually tried the javascript invocation on a simple apache server and everything works fine.&lt;br&gt;But when i use it on liferay,things go for a toss.&lt;br&gt;&lt;br&gt;In the velocity template ,i give the property for click url of the chart as follows:&lt;br&gt;clickURL='JavaScript:%26lt;portlet%3Anamespace%2F%26gt;TestMethod();'&lt;br&gt;&lt;br&gt;Then pass the registerWithJS parameter as follows in jsp:&lt;br&gt;&lt;%&lt;br&gt;String url=chart.getFusionChartSWFFile()+"?registerWithJS=1";&lt;br&gt;String chartHTMLCode=createChartHTML(url, "",strXML,"MainChartId_${loopStatus.index}", 400, 300, true);&lt;br&gt;%&gt;&lt;%=chartHTMLCode%&gt;&lt;br&gt;&lt;br&gt;The javascript given in jsp is as follows:&lt;br&gt;pleasefind the code in ChartDebugger.txt attched.&lt;br&gt;&lt;br&gt;The chart debugger has no errors.The javascript invocation in the chart debugger is as follows:ChartDebugger.txt attched.&lt;br&gt;&lt;br&gt;If anyone has worked on fusioncharts for portlets or has any idea please feel free to suggest.&lt;br&gt;Thanks,&lt;br&gt;olives</description><pubDate>Tue, 02 Sep 2008 00:52:17 GMT</pubDate><dc:creator>Olives</dc:creator></item><item><title>RE: createChartHTML and registerWithJS</title><link>http://www.fusioncharts.com/forum/Topic8212-33-1.aspx</link><description>Hi,&lt;P&gt;Please note that registerWithJS works in both version 3.0.5 &amp;amp; 3.0.6, the only difference is that Print &amp;amp; SaveAsImage methods are not exposed in version 3.0.5. This will work with trial verion of 3.0.6 also.</description><pubDate>Fri, 29 Aug 2008 00:27:36 GMT</pubDate><dc:creator>Rahul Kumar</dc:creator></item><item><title>RE: createChartHTML and registerWithJS</title><link>http://www.fusioncharts.com/forum/Topic8212-33-1.aspx</link><description>hi,&lt;br&gt;Thank you for the reply.&lt;br&gt;I am making use of Fusion chart version 3.0.5.this does not work.&lt;br&gt;One of the forum posts mentioned using fusion 3.0.6 for the registerWithJS=1 to be working.&lt;br&gt;Will it work with the trial version of 3.0.6?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;olives</description><pubDate>Thu, 28 Aug 2008 10:23:11 GMT</pubDate><dc:creator>Olives</dc:creator></item><item><title>RE: createChartHTML and registerWithJS</title><link>http://www.fusioncharts.com/forum/Topic8212-33-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;Could you please try this code for enabling registerWithJS&lt;/P&gt;&lt;P&gt;String chartCode=createChartHTML("./FusionCharts/Column2D.swf&lt;FONT color=#dd3333&gt;?registerWithJS=1&lt;/FONT&gt;", strXML, "" , "xyz", 600, 300, false);</description><pubDate>Thu, 28 Aug 2008 00:23:29 GMT</pubDate><dc:creator>Arindam</dc:creator></item><item><title>createChartHTML and registerWithJS</title><link>http://www.fusioncharts.com/forum/Topic8212-33-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I am making use of the following method to loop through display a list of drilldown charts in my jsp. &lt;br&gt;Is there a way to use registerWithJS using this code?This parameter is present with the fusionChart constructor.&lt;br&gt;&lt;br&gt; //Create the chart - Pie 3D Chart with data from strXML&lt;br&gt;       String chartCode=createChartHTML("./FusionCharts/Column2D.swf", strXML, "" , "xyz", 600, 300, false);&lt;br&gt;      &lt;br&gt;   %&gt;&lt;br&gt;   &lt;%=chartCode%&gt; &lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Olives</description><pubDate>Wed, 27 Aug 2008 23:50:51 GMT</pubDate><dc:creator>Olives</dc:creator></item></channel></rss>