ie8 & datatables.net

ie8 & datatables.net

rob_j_eganrob_j_egan Posts: 2Questions: 0Answers: 0
edited August 2011 in DataTables 1.8
Hi I recieve this error msg from ie8 "Line: 6690 Error: 'null' is null or not an object", which lead me to the return statement.

/* Array or flat object mapping */
return function (data) {
return data[mSource];
};

I'm using "jquery.dataTables.js" not the compressed version and the following code is from my web application.

var oTable = $('#example').dataTable( {
"bDestroy":true,
"bLengthChange": false,
"bProcessing": true,
"bJQueryUI": false,
"bFilter": false,
"iDisplayLength": "5",
"sPaginationType": "full_numbers",
"sAjaxSource": "asp_arrays.asp?JId="+$('#txt_JourneyId').val(),
"fnDrawCallback": function () {
$("#txt_NoAPEntries").val(this.fnSettings().fnRecordsTotal());
}
} );
}

I also seem to get the same msg from jquery-1.5.1.min.js (line 16 character 13158)

Can anyone help?

Thanks in advance

Rob

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    That's an interesting one :-). Could you possibly show us some of the JSON reply from the Ajax request, as I suspect it is an interaction there that is causing the error.

    Thanks,
    Allan
  • rob_j_eganrob_j_egan Posts: 2Questions: 0Answers: 0
    Hi Allan,
    I hadn't been back to see if there was a response. Thank you for the quick response to my initial post. Your spot on in your comment.... it was the ajax reply or in my case the lack thereof, as initially I have no data to populate the table.

    The below resolved the issue for me.

    { "aaData": [] }
  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Great stuff - good to hear it is working now :-)

    Allan
This discussion has been closed.