Sign in to follow this  
abbottmw

problem with javascript functions in the link attribute

Recommended Posts

Im trying to add a javascript link in my chart like so..

<set label="2000" value="15695" link="j-myJS-Malaysia, 121" />

i have a myJS() function on my page just taken from the examples.

function myJS(myVar){window.alert(myVar);}

When i run the chart, and i click on a bar, it acts like j-myJS-Malaysia, 121 is a link to a file, and not a javascript function.

When i switch it to javascript:myJS('Malaysia, 121')  it works fine.

Am i missing something?

 

Share this post


Link to post
Share on other sites

Okay i seem to be back to square one. It worked for a second, but i cleaned my cache, and now im back to the first problem. it is treating it like a real link and not a js link.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

 

 

 

Could you please attach the entire code along with the XML?

 

 

 

We have not encountered such an issue before.

Share this post


Link to post
Share on other sites

I downloaded fusioncharts evaluation again and extracted the charts, js, cleared my cache, and tried it one more time and it works.  I apologize.

Thanks!

-Matthew

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