IE8/IE7 JScript runtime error: Unexpected call to method or property access

IE8/IE7 JScript runtime error: Unexpected call to method or property access

pawan_atlpawan_atl Posts: 1Questions: 0Answers: 0
edited August 2012 in DataTables 1.8
Hi

I use below code to append a modal dialog to a row image:click() event within datatables.

Everything works fine in IE9 and Chrome, but IE8 and below raises exception. Any idea what's wrong?

$('.imgRemove').live('click', function () {
var nTr = $(this).parents('tr')[0];
var aData = oTable.fnGetData(nTr);
$('').appendTo($(this))
.html('Are you sure want to delete this message?')
.dialog({
modal: true, title: 'Delete message', zIndex: 10000, autoOpen: true, width: 300, height: 190, resizable: false,
buttons: {
Yes: function () {
var res = DeleteMessage(aData[1]);
if (res=="1") {
oTable.fnDeleteRow(nTr);
$(this).dialog("close");
} else {
$(this).html(res);
}
},
No: function () {
$(this).dialog("close");
}
},
close: function (event, ui) {
$(this).remove();
}
});
});


Image control within the cell is defined as below:-


Have you come across something like this?

Regards
Pawan
This discussion has been closed.