RGraph and IE9 and below

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Patrick Mischler on 23rd July 2014
Hello,

I'va a problem using RGraph with IE9 and belos. All works fine with Firefox. For IE I have added the following line to my site:

<!--[if IE]><script type="text/javascript" src="js/excanvas.js"></script><![endif]-->

But the graphs are not displayed correctly. The IE 8 throws some warnings:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Wed, 23 Jul 2014 06:08:55 UTC



Message: Object doesn't support this property or method
Line: 3183
Char: 13
Code: 0
URI: localhost/js/rgraph/RGraph.common.core.js


Message: 'undefined' is null or not an object
Line: 3174
Char: 9
Code: 0
URI: localhost/js/rgraph/RGraph.common.core.js


Message: Object doesn't support this property or method
Line: 3183
Char: 13
Code: 0
URI: localhost/js/rgraph/RGraph.common.core.js


Message: 'undefined' is null or not an object
Line: 3174
Char: 9
Code: 0
URI: localhost/js/rgraph/RGraph.common.core.js

Can anybody help?

Regards,
Patrick
Posted by Richard on 23rd July 2014
There's a list of caveats on this page that you should read through. In particular you need to create your charts in the window.onload event and ExCanvas should be loaded in your page AFTER jQuery:

www.rgraph.net/docs/microsoft-internet-explorer-support.html





Richard
Posted by Patrick Mischler on 23rd July 2014
I managed it to work now. I had to do this:

<!--[if lt IE 9]><script type="text/javascript" src="js/excanvas.js"></script><![endif]-->

And I had to turn off the compatibility view.

Add a reply




« Back to message list