restful datatables (feature)

restful datatables (feature)

panepane Posts: 1Questions: 0Answers: 0
edited June 2009 in General
datatables is really kicking a**, but one feature is missing: restful datatables i.e. browser history awareness.
there exist already some plugins for jquery that enable such functions (like http://plugins.jquery.com/node/4324 or http://www.stilbuero.de/jquery/history/).

If this functionality could be integrated into datatables (call the history-methods everytime a sorting/filtering/paging is executed) and the state of the table can be access direct via url parameters, it would be really appreciated.

any comments on this? or has already someone tried to add such functionality?

greetz
pane

Replies

  • allanallan Posts: 54,712Questions: 1Answers: 8,558 Site admin
    Hi pane,

    While this specific application is not directly supported in DataTables, all of the information is available for a developer to do this. The state saving feature that DataTables has stores state information as a string in a cookie, and it would be possible to use the API functions to read this string and update an anchor url or whatever it is you want to use. Alternatively is the browser reinitialises the table on the back button hijack, then the state saving will set the table back to where it was before hand. Worth noting that the state saving updates on each draw (fnDrawCallback()).

    Hope this helps,
    Allan
This discussion has been closed.