Server side processing

Server side processing

krishna1krishna1 Posts: 2Questions: 1Answers: 0

Hi,

I am trying to get the serverside processing work on with datatables. I am using node on the server side and it responds back the data to datatables. But, I am getting stuck on Processing on the table.

Here is the datatable function: $(document).ready(function() { $('#system_log_table').dataTable( { "processing": true, "serverSide": true, "ajax": { "url": "/advanced/get_system_logs", }, "stateSave": true, "autoWidth": true, "searching": true, "destroy": true, "info": false, "lengthChange": true, "paging": true, "pagingType": 'full_numbers' }); });

This is an example response which I get on ajax: {"draw":1,"recordsTotal":10,"recordsFiltered":10,"data":[["Jun 27 04:09:45","notice","syslog-ng startup succeeded"],["Jun 27 04:10:01","info","(root) CMD (/home/balancer/code/firmware/current/bin/process_schedule.pl > /dev/null 2>& 1)"],["Jun 27 04:10:01","info","(root) CMD (/home/product/code/firmware/current/bin/update_log_count > /dev/null 2>&1)"],["Jun 27 04:10:01","info","(root) CMD (/home/balancer/code/firmware/current/bin/system_snapshot > /dev/null 2>& 1)"],["Jun 27 04:10:01","info","(root) CMD (/home/balancer/code/firmware/current/bin/watchdog.pl > /dev/null 2>& 1)"],["Jun 27 04:10:01","info","(root) CMD (/home/product/code/firmware/current/bin/virusdef_updates.pl Hourly > /dev/null 2>& 1)"],["Jun 27 04:10:01","info","(root) CMD (/home/product/code/firmware/current/sbin/ntp-sync.pl > /dev/null 2>& 1)"],["Jun 27 04:10:02","info","Restart command syslog' - FAILED"],["Jun 27 04:10:02","info","Check module /home/product/code/firmware/current/etc/watchdog.d/09syslog.pm FAILED"],["Jun 27 04:10:02","info","Check command /home/product/code/firmware/current/etc/watchdog.d/10mysql' - OK"]]}

The HTML is as below:
<table id="system_log_table" class="server_table sortable_table"> <thead> <tr> <th> Timestamp </th> <th> Severity Level </th> <th> Message </th> </tr> </thead> </table>
It is pretty basic but I am not able to get debug as I am not getting any error in Chrome dev tools. Can you help me with this.

Thanks
Krishna

This discussion has been closed.