javascript - jqplot with IE8 not working - Stack Overflow

i am getting a js-error when i try to init graphs with jqplot under IE8.The error is at:return window.G

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.

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.

Share Improve this question edited Apr 27, 2017 at 8:14 Jan Möller asked Mar 27, 2014 at 11:01 Jan MöllerJan Möller 3214 silver badges19 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

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 ments 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 ment or use feature dectetion to include the excanvas.js.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745343240a4623426.html

相关推荐

  • javascript - jqplot with IE8 not working - Stack Overflow

    i am getting a js-error when i try to init graphs with jqplot under IE8.The error is at:return window.G

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信