Datatables State Save to hashtag
Datatables State Save to hashtag
techplex
Posts: 3Questions: 0Answers: 0
Is there a built in way to store the state of the datatable to the url using the hashtag?
I've seen the options for localstorage and using cookies but I'd like to be able to go back and forward through the sorting changes.
I'm interested in persisting:
1. the sort order of multiple columns
2. the search (table wide filter)
3. the filter on each individual column (http://datatables.net/examples/api/multi_filter.html)
4. the current page
Am I missing a good way to do this?
I'm thinking of using html5's history api, with a polyfill for ie6+ thoughts?
Can you point me towards any work that has already been done in this area that I may have missed?
Thanks for the great work.
I've seen the options for localstorage and using cookies but I'd like to be able to go back and forward through the sorting changes.
I'm interested in persisting:
1. the sort order of multiple columns
2. the search (table wide filter)
3. the filter on each individual column (http://datatables.net/examples/api/multi_filter.html)
4. the current page
Am I missing a good way to do this?
I'm thinking of using html5's history api, with a polyfill for ie6+ thoughts?
Can you point me towards any work that has already been done in this area that I may have missed?
Thanks for the great work.
This discussion has been closed.