Store the DataTable conditions within the URL hash every time a condition is changed, such as the page, length, search or a column order, making it possible to copy/paste the URL. Once said URL is loaded, the conditions will be retrieved from the URL hash and implemented to the table
Just tried to find a way to set a custom key for the URL key parameter of KeepConditions. By default the table id of DataTables is used. For sure that makes sense. Especially if there is more then one table on the page. But I have one case where I would customize the key name but can't easily change the DataTables ID itself.
Already tried to manually set the name for _tableId but the URL is still using the DatTables ID name. Any idea how to archive this?
Hi! First of all, great plugin!
Is there a way to add a custom parameter that will use the hash as transport?
I need to separate the term that is sent to the server from any term that is used to filter data in the respons.
I have the need to initialize datatable from url but without filter (f).
One might say that I need one parameter that is the search term that is used in ajax to get data. This is to be distinguished from the "f" parameter used for filtering the data from the server.
Thanks/F
It'd be nice to have an option to turn on/off the creation of browser history entries. Unless I'm missing something, right now, when I type "t-e-s-t" into the global search input field, I get 4 entries into my browser history. This means that I'll have to hit the back button 4 times to actually go back to my previous page.
The most obvious fix would be to modify structureHash:322 and change window.location.hash = newHash || '_' to window.history.replaceState(undefined, undefined, newHash || '_'). This would manipulate the browser history and change the 'current' entry to be the new URL.