Dynamic Content updates with DataTables?

Dynamic Content updates with DataTables?

rossinirossini Posts: 1Questions: 0Answers: 0
edited April 2011 in General
Hello experts,

this looks like a brilliant JQuery add-on.

Just to make sure that this is what I am searching for... what's the easiest, fastest way to update content when using DataTables?

I did develop a tool which is only running locally on a computer (no web server involved) where a HTA (HTML Application) is showing a HTML table. The content of that HTML table is periodically changing (at the same time, I also have number of javascript arrays which contain always the same content as the HTML table.

The number of rows of the HTML table (as well as the length of the javascript arrays) is changing.

To give an example... I record the results of a network computer scan with ping and dns results in such a table, each row containing the computer ip address, the ping status, the answer time, the computer name and the number of successful pins.

The number of rows is changing whenever the number of available computer changes (often during the day) and of course the content in each row (number of successful pings, answering times, etc) is also changing very often.

I would be happy if there's an easy way to easily update DataTables output every few seconds. What's the easiest way to do so? Since the HTML table is updated quite tricky by an external application, I have no control on individual cell changes, but re-read it every few seconds via DOM and re-fill my javascript variables.

Can I let DataTables re-read the HTML table via DOM also every few seconds or is this done automatically?

I have seen that I can update content of the table row-by-row and that I can destroy and add rows? Is that the easiest way to do it? Is there an easier or faster way?

Thank you in advance,

Oliver
This discussion has been closed.