LocalStorage - How is fnStateLoad firing?

LocalStorage - How is fnStateLoad firing?

ierpeierpe Posts: 6Questions: 1Answers: 0
edited April 2014 in DataTables 1.10
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?

Replies

  • ierpeierpe Posts: 6Questions: 1Answers: 0
    Ok my bad I got mixed up between the old and new docs I guess.

    The problem was that I was using fnStateLoad and fnStateSave instead of stateSaveParams and stateLoadParams...
This discussion has been closed.