javascript - DataTables warning: table id=table_id - Requested unknown parameter '0' for row 0. For more information about this error, please see -


javascript

<script type="text/javascript">     $(document).ready(function() {         $('#table_id').datatable({         "processing": true,         "serverside": true,         "ajax": {             "url": $("#show_all_orders").attr('action'),             "ordering":false,             "data":function ( d ) {                 d.command = "get_all_orders_ajax";                 d.ajax="true";             },         "columns": [     { "data": "statusrepr" },                          { "data": "id" },                          { "data": "description" },                          { "data": "maxloadheight" },                          { "data": "maxloadwidth" },                          { "data": "maxloadlength" },                          { "data": "weight" },                          { "data": "volume" },                          { "data": "departuredate" },                          { "data": "arrivaldate" },                          { "data": "departurepoint" },                          { "data": "arrivalpoint" },                          { "data": "status" }                      ]         }          });     }); </script> 

html

<table id="table_id" class="display">             <thead>                 <tr>                 <th>repr</th>                     <th><fmt:message key="table.order.id" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.description" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.max.load.height" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.max.load.width" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.max.load.length" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.weight" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.volume" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.date.departure" bundle="${loc}" /></th>                     <th><fmt:message key="table.order.date.arrival" bundle="${loc}" /></th>                     <th>arrival point</th>                     <th>departure point</th>                     <th><fmt:message key="table.order.status" bundle="${loc}" /></th>                  </tr>             </thead>             <tbody>             </tbody>         </table> 

json

{"data":[{"statusrepr":"registered","id":44,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":43,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":38,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":37,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":36,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":35,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":34,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":33,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":32,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":31,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":30,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":29,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":28,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":27,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":26,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":25,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":24,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":23,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":22,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":21,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":3,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"},{"statusrepr":"registered","id":2,"description":"dsaf","maxloadheight":1,"maxloadwidth":1,"maxloadlength":1,"weight":1,"volume":1,"departuredate":"янв 1, 2008","arrivaldate":"янв 1, 2010","departurepoint":"Ожерелье","arrivalpoint":"Москва","status":"registered"}],"recordstotal":22,"draw":10}

i read data servlet. number of rows reads without problem, because can see them. rows empty. , throws error: datatables warning: table id=table_id - requested unknown parameter '0' row 0. more information error, please see http://datatables.net/tn/4 i'm using latest version of it: datatables 1.10.6.


Popular posts from this blog