LocalStorage - How is fnStateLoad firing?
LocalStorage - How is fnStateLoad firing?
ierpe
Posts: 6Questions: 1Answers: 0
Hi,
I'm trying to "extract" some data from the local storage. (I have some select inputs that I need to re-initialize at their last state)
But I don't understand, when I add an alert() to the fnStateLoad function, it is not firing.
How can I access the local storage and manipulate the data ? The state saving is working fine, but neither of the fnStateLoad, stateLoaded, ... seems to be firing when I add some code into it.
Also when I add
[code]alert(JSON.parse(localStorage.getItem('my_table')));[/code]
to the initComplete function, it always returns null.
Would you be able to clarify please?
I'm trying to "extract" some data from the local storage. (I have some select inputs that I need to re-initialize at their last state)
But I don't understand, when I add an alert() to the fnStateLoad function, it is not firing.
How can I access the local storage and manipulate the data ? The state saving is working fine, but neither of the fnStateLoad, stateLoaded, ... seems to be firing when I add some code into it.
Also when I add
[code]alert(JSON.parse(localStorage.getItem('my_table')));[/code]
to the initComplete function, it always returns null.
Would you be able to clarify please?
This discussion has been closed.
Replies
The problem was that I was using fnStateLoad and fnStateSave instead of stateSaveParams and stateLoadParams...