Table > asmx webservice parameter '0' for row 0, column 0
Table > asmx webservice parameter '0' for row 0, column 0
hf1
Posts: 1Questions: 1Answers: 0
http://live.datatables.net/nenuyude/1
http://debug.datatables.net/omalor
Hi, I'm trying to fill a table with data from a asmx webservice. Every time I get the warning: DataTables warning: table id=tblData - Requested unknown parameter '0' for row 0, column 0. For more information about this error, please see http://datatables.net/tn/4
Via debugger I can see the aaData is filled with the correct data.
var table = $('#tblData').DataTable({
bProcessing: true,
bServerSide: true,
sAjaxSource: "getData.asmx/GetTWSLog",
sAjaxDataProp: "aaData",
aoColumns: [
{ Id: "Id" },
{ AgEcco: "AgEcco" }
],
fnServerData: function (sSource, aoData, fnCallback) {
$.ajax({
dataType: 'json',
contentType: "application/json",
type: "GET",
url: sSource,
data: aoData,
success: function (data) {
var json = $.parseJSON(data.d);
fnCallback(json);
//$("#tblData").show();
},
error: function (xhr, textStatus, error) {
if (typeof console == "object") {
console.log(xhr.status + "," + xhr.responseText + "," + textStatus + "," + error);
}
}
});
}
});
This discussion has been closed.