We are using openlayers in our app along with jQuery and when we click on a certain marker on our map we run into an error on IE8/7 in jQuery code wherein it crashes when its trying to handle the DOM events in the following function:
jQuery.event.special.change = {
filters: {
focusout: testChange,
click: function( e ) {
var elem = e.target, type = elem.type;
...
This occurs in Jquery 1.4.2 and the line no in the function is 2281. Does anyone have an idea what this error is. I am struggling to debug this. It works fine on Firefox, Chrome and Safari.
Just an update I had a breakpoint set within the function click mentioned above and its not hit in FFX!
e.target is an OpenLayer.Geometry.Point
object and when I look at the object in IE it doesn't have a type property.
Also what is that comma doing there? Is that a mistake?
The call stack shows that the above function is called at:
var ret = handleObj.handler.apply( this, arguments ) line#1936
in the function handle of jQuery.
The error thrown is Run time error-failed.
After this the execution continues but there are many other errors reported on the page.
Please tell me if I can provide you more information, but I have no idea what is going wrong here.
Can you think of some reason why this is occurring on IE only
Well we added a hack in our jquery code that continues execution at that part if the browser is not msie. some weirdass shit yet to get to the bottom of this. but the fix was necessary