Stephane77680

Probleme with javascript link in jsp page

Recommended Posts

Hi,

I have already read differents post about this subject and try differents solutions but nothing are ok.

I have a jsp page with javascript function.

I construct a fusion chart pie and i would make a link on part of pie :

<!-- START Script Block for Chart chart_D020 -->

 <div id='chart_D020Div' align='center'></div>

 <script type='text/javascript'>

 var chart_chart_D020 = new FusionCharts("fusionChart/charts/Pie3D.swf", "chart_D020", "210", "205", "0", "1");

 

 

  // Provide entire XML data using dataXML method

  chart_chart_D020.setDataXML("<chart palette='1' use3DLighting='1'  startingAngle='45'   showPercentageValues='1' showValues='1' placeValuesInside='1' enableSmartLabels='0' showLabels='0' enableLink='1'  ><set label='Alerte' link='j-AfficheRouge-D020' tooltext='-Nombre de lots vacants{BR}-Toc de gestion{BR}' color='FF0000' value='2'  /><set label='Normal' link='j-AfficheVert-D020' tooltext='-Taux d'immobilisation{BR}-Toc national{BR}' color='00FF00' value='2' /><styles><definition><style name='myShadow' type='Shadow' color='999999' angle='45'/></definition><application><apply toObject='DataValues' styles='myShadow' /></application></styles></chart>");

 

<!-- Finally, render the chart.-->

chart_chart_D020.render("chart_D020Div");

 </script>

 <!--END Script Block for Chart chart_D020 -->

With IE6, IE7 or FF , on my pie's parts i have the hand cursor but when i click ->Nothing not error, not action , nothing :)

I have add registerWithJS:

<jsp:param name="chartSWF" value="fusionChart/charts/Pie3D.swf?registerWithJS=1" />

Always nothing

If somebody have an idea to help me, i catch it :)

Thank

St

Edited by Guest

Share this post


Link to post
Share on other sites

Hi Stephane,

If you are using FusionChartsRenderer.jsp to embed the chart, then this is how you pass the registerWithJS parameter to it:

<jsp:include page="../Includes/FusionChartsRenderer.jsp" flush="true"> 
<jsp:param name="chartSWF" value="../../FusionCharts/Column3D.swf" /> 
<jsp:param name="strURL" value="Data/Data.xml" /> 
<jsp:param name="strXML" value="" /> 
<jsp:param name="chartId" value="myFirst" /> 
<jsp:param name="chartWidth" value="600" /> 
<jsp:param name="chartHeight" value="300" /> 
<jsp:param name="debugMode" value="false" /> 
<jsp:param name="registerWithJS" value="true" /> 
</jsp:include>

Please make this correction and try once.

Hope this works out. :)

Srividya

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