glbm.leo

Catch Console Errors

Recommended Posts

Hello.

 

I was wondering if there is a way to avoid FusionCharts to throw errors to the JS console. I managed to listen to errors with the addEventListener using "Errors", but that approach does not avoid the user viewing errors in the page.

 

I tried to use a try & catch between the definition of the chart without luck.

 

Any suggestion would be greatly appreciated.

 

Regards.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

You would need to use JavaScript event listener and call your own function inside the event in this way:

 

FusionCharts.debugMode.outputTo(your function name);

 

More details at: http://www.fusioncha.../?Debug/JS.html

 

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks Angshu for your reply.

 

I found the FC_ functions much more appropriate in my context. But I'm having trouble to use the parameters.

 

function FC_Error(eventObject, argumentsObject) {...}

The first parameter seems to exist, but not the second. Furthermore, the first one have this properties:

 

id: "..."
message: "..."
nature: "..."
source: "..."
__proto__: Object

 

I need to know the FusionChart Id to proceed accordingly.

 

Thanks again for your support!

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