Question

i am getting a js-error when i try to init graphs with jqplot under IE8.

The error is at:

return window.G_vmlCanvasManager.initElement(P)

in the jquery.jqplot.min.js file.

The error is about: "the property initElement is undefined or null"

How can i fix that?

Moreover the same error appears at the official site of jqplot.

I am using the IE11 with IE8 Emulator Mode. IE>8 => no problems.

Was it helpful?

Solution

Did you include the excanvas?

From their site:

Note, excanvas is required only for IE versions below 9. IE 9 includes native support for the canvas element and does not require excanvas

Note, if you are using IE10+ and are emulation IE8, conditional comments does not work.

So instead of

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

try out

<script language="javascript" type="text/javascript" src="excanvas.js"></script>

If it works then, it should work in the real IE8. You can keep the conditional comment or use feature dectetion to include the excanvas.js.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top