DataTables warning 'Requested unknown parameter'
DataTables warning 'Requested unknown parameter'
Hi,
currently I get this warning:
[code]
DataTables warning (table id = 'sort-tab'):
Requested unknown parameter '7'
from the data source for row 2101
[/code]
json calling:
[code]
$("#tab-clean input.chkClean:checkbox").each(function(){
var htmlline= $(this).parent().parent().html();
var lines = htmlline.split('\n');
var sortingtable = $('#sort-tab').dataTable();
sortingtable.fnAddData( [
lines[0],
lines[1],
lines[2],
lines[3],
lines[4],
lines[5],
lines[6]
] );
//THERE IS WARNING!!!
// ... next code
[/code]
all works fine, only this warning is not acceptable...
currently I get this warning:
[code]
DataTables warning (table id = 'sort-tab'):
Requested unknown parameter '7'
from the data source for row 2101
[/code]
json calling:
[code]
$("#tab-clean input.chkClean:checkbox").each(function(){
var htmlline= $(this).parent().parent().html();
var lines = htmlline.split('\n');
var sortingtable = $('#sort-tab').dataTable();
sortingtable.fnAddData( [
lines[0],
lines[1],
lines[2],
lines[3],
lines[4],
lines[5],
lines[6]
] );
//THERE IS WARNING!!!
// ... next code
[/code]
all works fine, only this warning is not acceptable...
This discussion has been closed.
Replies
The error is because your table appears to have 9 columns, but you are only adding 7 in your fnAddData call.
Allan