Save Table Contents To Server

Save Table Contents To Server

wirikidorwirikidor Posts: 4Questions: 0Answers: 0
edited January 2014 in General
Currently I'm using a DataTable to display the contents of a CSV file found on a server, in order to edit the individual fields. I have a server side resource (PHP) that converts the CSV to JSON and the DataTable loads it dynamically. I made some custom buttons for doing things like deleting a row, and that works fine.

What I'm stuck on now though is how do I save the data in my DataTable back to the server as a CSV? I was looking at TableTools, but that only seems to allow you to copy the data to clipboard or download as a CSV/PDF/etc.

I need to do an AJAX post back to the server with my new values, and I'm not sure what direction to go.

Replies

  • netametanetameta Posts: 39Questions: 0Answers: 0
    You can make another button that takes all the datatable's data then ajax it back to the server, however i am not sure how well it will work if you are doing pagination.
This discussion has been closed.