Hello Allan,
I look into code and I see, methods loading localstorage data
https://github.com/DataTables/DataTables/blob/master/media/src/model/model.defaults.js#L1141
and saving
https://github.com/DataTables/DataTables/blob/master/media/src/model/model.defaults.js#L1247
I would like to know if these methods are currently running while datatables are loaded. Because I have just done some tests and localstorage is empty -> state is sent in cookies (I deleted cookies and tried again and still the same result).
I could implement it by myself in config but I would like to be able to fallback to cookies if browser is not supporting localstorage. How to do this? I assume I will call some built in function in datatables that does this.
I am using firefox 20.0.1 and minified version of datatables 1.9.0.
Thanks for your answer.
kevujin
I look into code and I see, methods loading localstorage data
https://github.com/DataTables/DataTables/blob/master/media/src/model/model.defaults.js#L1141
and saving
https://github.com/DataTables/DataTables/blob/master/media/src/model/model.defaults.js#L1247
I would like to know if these methods are currently running while datatables are loaded. Because I have just done some tests and localstorage is empty -> state is sent in cookies (I deleted cookies and tried again and still the same result).
I could implement it by myself in config but I would like to be able to fallback to cookies if browser is not supporting localstorage. How to do this? I assume I will call some built in function in datatables that does this.
I am using firefox 20.0.1 and minified version of datatables 1.9.0.
Thanks for your answer.
kevujin