createChartHTML and registerWithJS
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



createChartHTML and registerWithJS Expand / Collapse
Author
Message
Posted 8/27/2008 11:50:51 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
Hi,

I am making use of the following method to loop through display a list of drilldown charts in my jsp.
Is there a way to use registerWithJS using this code?This parameter is present with the fusionChart constructor.

//Create the chart - Pie 3D Chart with data from strXML
String chartCode=createChartHTML("./FusionCharts/Column2D.swf", strXML, "" , "xyz", 600, 300, false);

%>
<%=chartCode%>

Thanks,
Olives
Post #8212
Posted 8/28/2008 12:23:29 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 7:54:06 AM
Posts: 644, Visits: 1,948
hi,

Could you please try this code for enabling registerWithJS

String chartCode=createChartHTML("./FusionCharts/Column2D.swf?registerWithJS=1", strXML, "" , "xyz", 600, 300, false);

Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #8214
Posted 8/28/2008 10:23:11 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
hi,
Thank you for the reply.
I am making use of Fusion chart version 3.0.5.this does not work.
One of the forum posts mentioned using fusion 3.0.6 for the registerWithJS=1 to be working.
Will it work with the trial version of 3.0.6?

Thanks,
olives
Post #8256
Posted 8/29/2008 12:27:36 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 7:14:23 AM
Posts: 153, Visits: 634
Hi,

Please note that registerWithJS works in both version 3.0.5 & 3.0.6, the only difference is that Print & SaveAsImage methods are not exposed in version 3.0.5. This will work with trial verion of 3.0.6 also.

Regards,
Rahul
FusionCharts Team.

Post #8262
Posted 9/2/2008 12:52:17 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18, Visits: 60
Hi,
I am working on rendering of fusion charts on portlets (liferay-tomcat).
I actually tried the javascript invocation on a simple apache server and everything works fine.
But when i use it on liferay,things go for a toss.

In the velocity template ,i give the property for click url of the chart as follows:
clickURL='JavaScript:%26lt;portlet%3Anamespace%2F%26gt;TestMethod();'

Then pass the registerWithJS parameter as follows in jsp:
<%
String url=chart.getFusionChartSWFFile()+"?registerWithJS=1";
String chartHTMLCode=createChartHTML(url, "",strXML,"MainChartId_${loopStatus.index}", 400, 300, true);
%><%=chartHTMLCode%>

The javascript given in jsp is as follows:
pleasefind the code in ChartDebugger.txt attched.

The chart debugger has no errors.The javascript invocation in the chart debugger is as follows:ChartDebugger.txt attched.

If anyone has worked on fusioncharts for portlets or has any idea please feel free to suggest.
Thanks,
olives


  Post Attachments 
ChartDebugger.txt (0 views, 463 bytes)
Post #8296
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:43pm


Execution: 0.031.