Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81950

Save state to cookie in file protocol

$
0
0

Hello all,

we are creating an HMTL application that uses tables that includes links to PDF files. It has to be used only offline under the File:// protocol (I can't change that!).
When the user gets back from the PDF to the table, sorting and filtering are reset to the initial state.

I know that there is the stateSave option. However, this option uses by default HTML 5 Local storage, which is not available under the File:// protocol.

Is there a way to save the actual datatables state to a cookie using e.g. js-cookie https://github.com/js-cookie/js-cookie or something similar?

I suppose it must be done with the stateSaveCallback option. But I could not make it work.

pedrono


Viewing all articles
Browse latest Browse all 81950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>