Jqplot error in IE 7

Asked

Viewed 107 times

5

I’m using the plugin JqPlot to generate a bar and column chart. After testing Mozilla and Chrome, which worked perfectly, I ran the test on IE7 and in the IE8 and got the following error:

window.g_vmlcanvasmanager is null or not an Object.

Can anyone tell me why? Because I imported all the necessary libraries, including the Canvas.

1 answer

5


Outdated versions of jqPlot do not work with jQuery 1.9

Update the version of jqPlot you’re using, or use an earlier version of jQuery:

<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>

Alternatively, include jQuery migrate: https://github.com/jquery/jquery-migrate/


It is important to remember that the jQuery version 2 no longer supports older versions of IE.


In addition, to support EI lower than 9, you also need the conditional code below (you said you already included this, but you are here for completeness):

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

Source: http://www.jqplot.com/docs/files/usage-txt.html

  • I am using Jquery 1.9.1

  • OK. I searched further; please see the updated response.

  • Thanks for the answer, using jquery 1.8 now works in IE 8.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.