DataTables warning: table id=table - Ajax error
DataTables warning: table id=table - Ajax error
bechirmrad
Posts: 20Questions: 6Answers: 0
i am stopped for 1 day cause this error !! and i didnt find still now the solution !
This discussion has been closed.
Answers
Have you followed the troubleshooting steps in the link provided in the error?
https://datatables.net/manual/tech-notes/7
Without any information of what you have its hard to help. Can you provide a link to your page or run the debugger and provide us with the link generated. This infor can be found in this tech note.
https://datatables.net/manual/tech-notes/10
Kevin
i am doing all the steps but no result
Ok, then as I suggested either provide a link to your page for debugging or use the debugger to collect information we can start with.
Kevin
Thanks
still the same error !!!!!!!!!!!!!
I'm happy to take a look at a page showing the issue so I can help to debug it.
Or as Kevin mentioned above, use the debugger and give us the debug code.
Allan
This is the index.php
<html>
(function() { var url = 'https://debug.datatables.net/bookmarklet/DT_Debug.js'; if (typeof DT_Debug != 'undefined') { if (DT_Debug.instance !== null) { DT_Debug.close(); } else { new DT_Debug(); } } else { var n = document.createElement('script'); n.setAttribute('language', 'JavaScript'); n.setAttribute('src', url + '?rand=' + new Date().getTime()); document.body.appendChild(n); } }); $(document).ready(function() { var Dtable = $('#table').DataTable ( { "processing": true, "serverSide": true, "ajax": { url :"server_processing.php", Type : "POST" } } ); } );</html>
and this the serverprocessing.php
<?php
$table = 'Ofabrication';
$primaryKey = 'IDOFabrication';
$columns = array(
array( 'db' => 'IDOFabrication', 'dt' => 0 ),
array( 'db' => 'OFAbrication', 'dt' => 1 ),
);
$sql_details = array(
'user' => 'admin',
'pass' => '',
'db' => 'DivatexSY',
'host' => 'Localhost'
);
include_once "conn.php";
require( 'ssp.class.php' );
echo json_encode( SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ));
<?php > ?>Thanks but that still doesn't help me I'm afraid. I need the 6 character debug code that the debugger gives you.
Allan