mData

mData

michaelwhitemichaelwhite Posts: 8Questions: 0Answers: 0
edited February 2013 in General
Hi all,

I have this issue where my datatables implementation works ok on ie9 but not ie8

this is my call to create a table

[code]
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "ReportingHubService.asmx/GetLatestReportsByCategoryAndStore",
data: '{"storeNumber": "' + StoreNumber + '"}',
dataType: "json",
success: function (response) {
$('#LatestReportsContainer').html('');

debugger;
if (response.hasOwnProperty("d"))
{
response = response.d;
}

var data = jQuery.parseJSON(response);

$('#LatestReportsTable').dataTable({
"sDom": "'<'row-fluid'<'span3'>T'",
"aaData": data,
"iDisplayLength": 100,
"aoColumns": [
{ "mData": "report_category", "sTitle": "Report Category", "bSearchable": true, "bVisible": true, "swidth": "35%" },
{ "mData": null, "sTitle": "Download Link", "bSearchable": true, "bVisible": true, },
],
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
debugger;
$('td:eq(0)', nRow).html(aData["full_path"].substring(7, aData["full_path"].length - 8));
$('td:eq(1)', nRow).html("Download");
},
"aaSorting": [[0, 'asc']]
})

},
error: function (response) {
debugger;
}
})

[/code]

When i run this in IE8 i get the following error

Datatables warning(table id = LatestReportsTable requested unknown parameter 2 from the data source for row 0

any help would be great

Thanks all....

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Can you link to a test case or run your page through the debugger please: http://datatables.net/faqs#unknown_parameter .

    Allan
This discussion has been closed.