bStateSave not working when sServerMethod is set to "POST"
bStateSave not working when sServerMethod is set to "POST"
bStateSave has been working great, but I just made some changes and now it doesn't work any more. Here are the changes I've made:
I set "sServerMethod" to "POST"
I added about 30 columns (I'm not using aoColumns or aoColumnDefs)
I changed the data source from "/admin/users.json" to "/admin/users/display_table.json"
Now, everything else works, there are no warnings or errors and my massive table displays correctly. However, the searches I type, the columns I have displayed (with the "ColVis" extra) and the page I'm on are not being saved at all between page refreshes.
I set "sServerMethod" to "POST"
I added about 30 columns (I'm not using aoColumns or aoColumnDefs)
I changed the data source from "/admin/users.json" to "/admin/users/display_table.json"
Now, everything else works, there are no warnings or errors and my massive table displays correctly. However, the searches I type, the columns I have displayed (with the "ColVis" extra) and the page I'm on are not being saved at all between page refreshes.
This discussion has been closed.
Replies
Might I make the suggestion that when the cookie DOES get too large, that DataTables do something and not just fail silently? Perhaps issue an alert or something?
The reason DataTables doesn't emit an 'alert' here, is because it is reasonably likely not to happen in a development environment, but it does for end users - hence the silent dropping of the cookie. I do plan to make a "trace" version of DataTables at some point that would include a large amount of logging, including this kind of thing.
Allan