Updating table for live data in real-time

Updating table for live data in real-time

helpmehelpme Posts: 1Questions: 0Answers: 0
edited October 2013 in General
I am new to DataTables. I would like to update a DataTable in real-time because the data is live and changes by the minute. Can someone point me to some samples on the internet or some place to start for this feature?

For all the DataTables samples I have seen on the net, none of them showed real-time update. The update was not automatic. Some event like clicking button or doing some search inside search bar needs to take place for the table to be updated.

Thank you.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You'd likely use fnUpdate or the fnReloadAjax plug-in depending upon how your data is coming in. As for how to do it, well, rather than just triggering on a button, you'd trigger the API calls on your web socket (I assume you are using web sockets for realtime comms?) or in a setInterval if you are using polling.

    Allan
This discussion has been closed.