Save State via URL Params

Save State via URL Params

jarrettgreenjarrettgreen Posts: 2Questions: 0Answers: 0
edited May 2012 in DataTables 1.9
localstorage to me is by bar the best option - but I've run into a case where it would be helpful to send the state to another controller in my app via url params. Is this possible? I looked through the API,but didn't see anything. Anyone know of some folks who be willing to take this on as a quick paid gig? Also, if I'm posting in the wrong forum, please let me know.

Replies

  • hozthozt Posts: 45Questions: 0Answers: 0
    state saving via url params is GET
    you can use the API, with a SYNCHRONOUS Ajax Request to state save and load, yes.

    allan documented it, look for stateSave
  • jarrettgreenjarrettgreen Posts: 2Questions: 0Answers: 0
    My problem is I need to sent a get request to the action that renders a pdf from the page - which is why localstorage and cookie implementation won't work because we no longer have that available to us server side. This table is on a page with other graphs and such, so if I could maintain the state via url params, I'd be good to go.
  • hozthozt Posts: 45Questions: 0Answers: 0
    Why don't you store it, and retrieve it from the DB, instead of passing it around?

    Not saying it ain't possible just don't see the point.
This discussion has been closed.