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