DataTables warning: table id=table - Ajax error

DataTables warning: table id=table - Ajax error

bechirmradbechirmrad Posts: 20Questions: 6Answers: 0

i am stopped for 1 day cause this error !! and i didnt find still now the solution !

Answers

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916

    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

  • bechirmradbechirmrad Posts: 20Questions: 6Answers: 0

    i am doing all the steps but no result :neutral:

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916

    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

  • bechirmradbechirmrad Posts: 20Questions: 6Answers: 0

    Thanks

  • bechirmradbechirmrad Posts: 20Questions: 6Answers: 0

    still the same error !!!!!!!!!!!!!

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    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

  • bechirmradbechirmrad Posts: 20Questions: 6Answers: 0

    This is the index.php

    <html>

    <link   rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">         </script>
    <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js">           </script>
    
    (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" } } ); } );
    IdOfabrication Ofabrication
    IdOfabrication Ofabrication

    </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 > ?>
  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    Thanks but that still doesn't help me I'm afraid. I need the 6 character debug code that the debugger gives you.

    Allan

This discussion has been closed.