Display dynamic CSV file in a datatables-like array

Display dynamic CSV file in a datatables-like array

Ergy Ergy Posts: 1Questions: 1Answers: 0

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 ....)

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    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

This discussion has been closed.