Working in Mozilla but not working under IE
I am using FLotr API to draw charts , and Flotr API is internally using Prototype.js . My Charts are working fine under Mozilla , but if i run charts in IE , its giving me Script Errors .
There is a function inside the Prototype.js file
function observe(element, eventName, handler) {
element = $(element);
alert(element);
}
When i put the开发者_开发问答 alert for the element and run with Mozilla it displays as
- [object Window]
- [object HTMLDocument]
- [object HTMLCanvasElement]
- [object HTMLCanvasElement]
- [object HTMLCanvasElement]**
But when i run with IE7 it displays
- [Object]
- [Object]
- A run time error
- object
Internet Explorer 7 does not support the <canvas>
element. Thus, the runtime error.
You can use a plug-in to add support for that element, though.
try to include excanvas into your script tags:
http://excanvas.sourceforge.net/
Hope this helps
精彩评论