Sign in to follow this  
Dhruva

Regarding javascript calling

Recommended Posts

Hi all,

 

 

 

there is another query,

 

 

 

In Fusion chart Documentation its written as

 

Instead of using simple links, you can also set JavaScript links using FusionCharts. That is, you can invoke a JavaScript function present in the same page (in which the chart is present) when the end viewer clicks a data element on the chart.

 

 

 

My javascript function is under a public folder ,ie under public i have a 'js' package, under than my Chart.js , inside there is my function named updateFusionChart(......);

 

 

 

When i tried to run the application ie, by click on the fusionchart to call the javascript function i was getting an error

 

Cannot find resource 'j-updateFusionChart("' in the public path of module 'com.xxx.dashboard.yyy.Main'

 

 

 

So how can i give the exact path for the javascript function.

 

 

 

My currentlink attribute is given below.

 

 

 


xStreamWriter2.writeAttribute("link","j-updateFusionChart(""+newCondQuery+"",""+funcNameList.get(k)+"",""

+statusNameList.get(k)+"",""+DrillDownKPI+"")");

Share this post


Link to post
Share on other sites

Hi shajeerkt,

 

 

 

Could you please send us the XML that is being generated.

 

 

 

Please also specify whether you are using dataXML or dataURL method.

 

 

 

You might pass us the code that you are using to render the chart.

 

 

 

It seems that there might be some issue with the quote that is encapsulating the parameter that for the link.

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