stateSaveCallback and stateLoadCallback

stateSaveCallback and stateLoadCallback

kornixkornix Posts: 2Questions: 1Answers: 0

Hi there!
I need some support on this stateSave and stateLoad callback.

Currently I am giving the state of the table to my server where it is stored in a database.
The content looks like that:
time=1460450657359&start=0&length=10&order%5B0%5D%5B%5D=0&order%5B0%5D%5B%5D=asc&

If I compare to the DOM-Value
"{"time":1460450655646,"start":0,"length":10,"order":[[0,"asc"]],

I see that the brackets are not correctly.
Is there any example which demonstrates my issue?

Best regards kornix

Answers

  • aschippersaschippers Posts: 22Questions: 8Answers: 3

    Did you get this working?

  • allanallan Posts: 61,950Questions: 1Answers: 10,158 Site admin

    I suspect it is related to how the server is interpreting the order part.

    Possibly what you need to do is submit the state object as a JSON string (JSON.stringify).

    Allan

This discussion has been closed.