最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jqplot with IE8 not working - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论