Display dynamic CSV file in a datatables-like array
Display dynamic CSV file in a datatables-like array
![Ergy](https://secure.gravatar.com/avatar/29d549aab6bf84f28e2ba858c1aac3bf/?default=https%3A%2F%2Fvanillicon.com%2F29d549aab6bf84f28e2ba858c1aac3bf_200.png&rating=g&size=120)
Hi, I'm new here I do not know how it goes, but I have a little concern and I hope I'm in the right place to find a solution.
I have a csv file that is initially empty in which I would start adding the data. which code (html, css and javascript) can I use to display this data in a table gathering on the table datatables (with options such as: search, sort, number of lines to display, next and previous buttons ....)
This discussion has been closed.
Answers
Hi @Ergy ,
DataTables can export to CSV, but it can't be used to import data. This StackOverflow thread may help - once you've got the file in HTML, you can use DataTables then to display the data.
Cheers,
Colin