Datatable Not loading in IE8
Datatable Not loading in IE8
krutovdl
Posts: 36Questions: 7Answers: 1
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]
[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]
This discussion has been closed.
Replies
Allan