I have the following code working fine in IE8 (and IE8 in IE7 compatibility mode) but not generating the right results in IE7
var areaId = "eventArea" + index;
var tempArea = $("<AREA id='" + areaId + "' shape='rect' coords='" + value.x + "," + value.y + "," + (parseInt(value.x) + parseInt(value.w)) + "," + (parseInt(value.y) + parseInt(value.h)) + "' >");
tempArea.appendTo($("map[name='wavImageMap']"));
$("#" + areaId).click(function() { alert('test'); });
On IE8 these HTML <AREA>
elements are created and added successfully. But not on IE7. The click event is not happening there.