Sign in to follow this  
gtramsak

FusionCharts.js exception in IE11 (Win8.1)

Recommended Posts

Hello,

 

When testing chart on IE11 we encountered a problem when reloading a chart via javascript with

chart.setJSONUrl(url);

 

The exception is InvalidStateError on code:

 

l.overrideMimeType && l.overrideMimeType("text/plain");

 

BUG SOLVED: move code above after the l.open() function has been executed (or before "for(o in g)"  a couple of lines below.)

 

Explanation: IE11 supports the overrideMimeType function, as oposed to all other IE versions. The function throws an exception if its called in xmlHttpRequest.readyState of 4 (completed), what happens here. By moving the function execution after the XMLHttpRequest.open(), the readyState is in the correct state.

 

 

Regards,

Gregor

Share this post


Link to post
Share on other sites

Hi Gregor,

 

Welcome to FusionCharts Forum.

 

Glad that you could resolve your problem yourself.

 

Thanks for sharing it with us.

Share this post


Link to post
Share on other sites

Hi,

 

I tested the new FusionCharts version 3.3.1 sr3 and  Ie11 Preview with latest updates.

 

I didn't apply the fix and XHR requests worked normaly. Looks like IE11 doesn't throw an exception anymore :)

 

Regards,

Gregor

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