How to keep the sorting with refreshed data

How to keep the sorting with refreshed data

amarundoamarundo Posts: 6Questions: 3Answers: 0

Hi,

I want to use DataTables to provide my user with sort/filter capability.

The data, though, is refreshed every 5 seconds. I do that using jQuery's load() to load a file that contains the table rows and injects it into the DOM. The problem is that it loses the sorting/filtering done by the user.

How do I do that? Would it help if the file I load is a JSON object instead?

(Note: the data that I load every 5 seconds is generated from an external system as HTML, but I can have it generate a JSON object instead).

Thanks!

Answers

This discussion has been closed.