Sign in to follow this  
victor.pereira

Javascript Render And Richfaces

Recommended Posts

Hi,

 

I use fusioncharts for a while, and i always rendered my charts using flash.

Now i need to render them using javascript, and i'm having problems with jQuery compatibility.

 

The version of jQuery in Richfaces is 1.3.2

The newer version of fusioncharts needs the 1.7 version.

 

I'm trying to use both version at the same time, but am having difficulties.

 

There's a way to pass the jQuery reference object to fusioncharts javascript API?

When i change the references, the chart is rendered, but all the richfaces effects and ajax doesn't work anymore.

 

Thanks.

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

I use fusioncharts for a while, and i always rendered my charts using flash.

Now i need to render them using javascript, and i'm having problems with jQuery compatibility.

 

The version of jQuery in Richfaces is 1.3.2

The newer version of fusioncharts needs the 1.7 version.

 

I'm trying to use both version at the same time, but am having difficulties.

 

There's a way to pass the jQuery reference object to fusioncharts javascript API?

When i change the references, the chart is rendered, but all the richfaces effects and ajax doesn't work anymore.

 

Thanks.

 

Hi,

 

Please share the sample code for further testing.

 

Let us also know the version of FusionCharts suite that you are currently using.

Share this post


Link to post
Share on other sites

Hi,

 

Please share the sample code for further testing.

 

Let us also know the version of FusionCharts suite that you are currently using.

 

I'm using the 3.2.3 version and Richfaces 3.3.

 

 

When i do this:

 

 

		var chart_GraficoConsumoEmpresa = new FusionCharts('grafico/FusionCharts/MSCombiDY2D.swf?ChartNoDataText=Sem Dados&XMLLoadingText=Por favor, aguarde', 'GraficoConsumoEmpresa', '700', 			'500', '0', '0', '', '', '', '', '');
		chart_GraficoConsumoEmpresa.setDataXML("<graph></graph>");
		chart_GraficoConsumoEmpresa.render('GraficoConsumoEmpresaDiv');

 

I get the error: Uncaught RangeError: Maximum call stack size exceeded

 

The error occurs because of the version of jQuery presents in Richfaces, that is 1.3.2. When i load the new version, it works, but richfaces components stop working.

 

Is there a way to use and older version to render fusioncharts charts or pass the newer version to javascript sources?

 

I'm trying to use two version of jQuery in my app, this way:

http://tudip.blogspot.com.br/2012/04/use-newer-version-of-jquery-with.html

but with no success.

 

Thanks

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this