Datatable Not loading in IE8

Datatable Not loading in IE8

krutovdlkrutovdl Posts: 51Questions: 9Answers: 1
edited April 2014 in DataTables 1.9
For some reason my datatable is not loading in IE8 but works fine with higher versions of IE. Below is the code:

[code]
var oTable = $('#XXXXXX').dataTable({
"bServerSide": true,
"bProcessing": true,
"sPaginationType": "full_numbers",
"sServerMethod": "POST",
"bPaginate": true,
"bLengthChange": true,
"sDom": "Tfrtip",
"sAjaxSource": "GetXXXXX",
"aoColumns": [
{
"aTargets": ["Id"],
"mData": "Id",
"bSearchable": true,
"bSortable": true,
"bVisible": false
},
{
"aTargets": ["UserName"],
"mData": "UserName",
"bSearchable": true,
"bSortable": true,
},
{
"aTargets": ["FirstName"],
"mData": "FirstName"
},
{
"aTargets": ["LastName"],
"mData": "LastName"
},
{
"aTargets": ["Email"],
"mData": "Email"
},
{
"aTargets": ["admin"],
"mData": "admin",
"mRender": function (data, type, full) {
if (data == "1") {
return '';
} else {
return '';
}
},
},
{
"aTargets": ["staff"],
"mData": "staff",
"mRender": function (data, type, full) {
if (data == "1") {
return '';
} else {
return '';
}
}
},
{
"aTargets": ["member"],
"mData": "member",
"mRender": function (data, type, full) {
if (data == "1") {
return '';
} else {
return '';
}
}
},
]
});
[/code]

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Possibly the trailing comma in your aoColumns array. Old versions of IE didn't like that.

    Allan
  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1
    The trailing comma was indeed the culprit. Thank you Allan.
This discussion has been closed.