Send parameter server side - Error undefined sEcho - No paging - No search
Send parameter server side - Error undefined sEcho - No paging - No search
Hello,
I'm doing an application using datatables .
If you load the page with the table using serverside processing everything works correctly :
oTable = $('#example').dataTable( {
"bLengthChange": false,
"bProcessing": true,
"bServerSide": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"sScrollX": "100%",
"sAjaxSource": "details_col.php",
});
The problem is that I have a form before loading the table , the user sends one parameter . I perform the following:
oTable = $ ( '# example' ) . dataTable ({
" BLengthChange ": false ,
" BProcessing ": true,
" BServerSide ": true,
" SPaginationType " " full_numbers "
" IDisplayLength " : 10,
" SScrollX " : "100%" ,
" ajax ": {
"url ": details_col.php"
"type": "POST "
"data" : {
" Code": code ,
} } ,
});
In the script details_col.php change case Where and I search where the Code = "code" . Then appears one error: "Undefined index: sEcho"
Then i delete this line ""sEcho" => intval($_GET['sEcho'])," in output of details_col.php. After draw the table, filtered with the value of code but paging and search not works. Any help?
Thanks