strange ajax get query

strange ajax get query

EugenOSEugenOS Posts: 2Questions: 1Answers: 1
edited August 2017 in Free community support

Hello
I have a strange datatables ajax query in serverside mode

<table class="table table-bordered table-condensed newage_table" id="view" >
  <thead>
    <th>Table name</th>
    <th>Stats</th>    
  </thead>
</table>
<script>
    $(document).ready( function() {
        $('#view').dataTable( {
            "aProcessing": true,
            "aServerSide": true,
            "ajax": "/work/tables_list_d.php?ajax=1",
            columns: [
                    {data:"TABLE_NAME"},
            ]
        } );
    } );  
</script>  

so there is a strange request from datatables. it looks like:

http://.../work/tables_list_d.php?ajax=1&_=1503660481279
with different numbers like "1503660481279"

so what is the "_" data field? and why is this so strange request?

(or this is me is so newbie)???

This question has an accepted answers - jump to answer

Answers

  • EugenOSEugenOS Posts: 2Questions: 1Answers: 1
    edited August 2017 Answer ✓

    the reason was cause i use legacy sample, when writing this. so when i change "aServerSide" to serverSide, "ajax" to ajax this starts to work fine

  • allanallan Posts: 61,849Questions: 1Answers: 10,134 Site admin

    Thanks for the update. Good to hear you have it working now.

    Allan

This discussion has been closed.