Sign in to follow this  
jlewis

Objects Fail As Function Arguments

Recommended Posts

The issue, while upgrading from FusionCharts v3.0 to v3.2:

I have several charts on a page, each using JavaScript in the link='' parameter to execute some code. Not all of the graphs use the same arguments, so I made the argument an object to keep it simple.

The function is called successfully when the charts are rendered in Flash, but in the JavaScript fall-back, the function isn't even called at all.

 

sample:

...

<set color='00FF00' value='4' toolText='933' showValue='0' link="JavaScript:showDrillDown({task:'default',pattern:'933'});" />

...

 

...

function showDrillDown(obj) {

alert("task: " + obj.task + " pattern: " + obj.pattern);

// do stuff

}

...

 

I have tried passing strings and numbers, this works; as soon as you switch to an object if fails.

Is it odd that it works for Flash but not in the JavaScript fallback?

Discovered during an upgrade from V3.0, any suggestions or solutions very welcome.

 

Thanks,

~ Josh

Edited by jlewis

Share this post


Link to post
Share on other sites

Hi Jlewis,

Thank you for your post.

This is a known issue, which is already fixed and will be effected in our next release.

If you are interested to try our latest development beta please mail us at [email protected] citing this forum post . please also mention your order-id.

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