DataTable with live updates via AJAX

DataTable with live updates via AJAX

jLinuxjLinux Posts: 981Questions: 73Answers: 75

Im creating a log monitoring script that will display the logs in a DataTable, ill use PHP to parse the file and display it in the table. Per another thread, Ill probably end up using the deferred rendering.

I was wondering, is there a way with DataTables to be able to do this live? Like if a new row in the log is detected via PHP, can I have it insert it into the table without extending the current page? I know theres an easy way to just fnAddRow, but if the display is set to 10, i wanted the new row to push the now 11th row to the next page.

Thanks

This question has an accepted answers - jump to answer

Answers

  • ThomDThomD Posts: 334Questions: 11Answers: 43
    Answer ✓

    Check out ajax.reload in the API reference. I don't know how exactly it renders new data, but it should point you in the right direction.

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Ill check it out and give it a shot, thanks!

This discussion has been closed.