How to implement datatables with socket.io
How to implement datatables with socket.io
jemz
Posts: 131Questions: 40Answers: 1
I want to use datables in socket.io, my problem is that I don't where should I put the listener of the events.
socket.on('.....');
by the way if using socket.io do I need still to put the ajax in the configuration of datatables ?.
Thank you in advance.
$(document).ready(function() {
$('#example').dataTable( {
"ajax": {
url:"./getEmployee.php"
},
"serverside": true,
"deferRender": true,
"columns": [
{"data": "employeeid"},
{"data": "empoloyeename"},
{"data": "hiredate"},
]
} );
} );
This discussion has been closed.
Answers
I've just added some thoughts on this in your other thread on this topic.
I seriously doubt that you want to use server-side processing with socket, but it is possible if you need to use 50k+ rows.
Allan