DataTables warning (table id = 'student_table'): Requested unknown parameter '1' from the data sourc
DataTables warning (table id = 'student_table'): Requested unknown parameter '1' from the data sourc
livewire
Posts: 1Questions: 0Answers: 0
I get the below error when i try to access my table
[quote]DataTables warning (table id = 'student_table'): Requested unknown parameter '1' from the data source for row 0[/quote]
I have been trying to fix this for almost a week now :(
Below is my JSON output
[quote]
{"sEcho":0,"iTotalRecords":3,"iTotalDisplayRecords":3,"aaData":[["85","name1","2"],["74","test475","4"],["777","test2","5"]],"sColumns":"admission,full_name,class"}
[/quote]
below is my table
[code]
Admission Number
Student Name
Class
Loading data from server
[/code]
below is my JS code
[code]
$(document).ready(function() {
$('#student_table').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sServerMethod": "POST",
"sAjaxSource": "<?php echo base_url()?>index.php/student/all"
} );
} );
[/code]
Can someone please help me solve this problem? My debug code is afejax
[quote]DataTables warning (table id = 'student_table'): Requested unknown parameter '1' from the data source for row 0[/quote]
I have been trying to fix this for almost a week now :(
Below is my JSON output
[quote]
{"sEcho":0,"iTotalRecords":3,"iTotalDisplayRecords":3,"aaData":[["85","name1","2"],["74","test475","4"],["777","test2","5"]],"sColumns":"admission,full_name,class"}
[/quote]
below is my table
[code]
Admission Number
Student Name
Class
Loading data from server
[/code]
below is my JS code
[code]
$(document).ready(function() {
$('#student_table').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sServerMethod": "POST",
"sAjaxSource": "<?php echo base_url()?>index.php/student/all"
} );
} );
[/code]
Can someone please help me solve this problem? My debug code is afejax
This discussion has been closed.