We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

How I can program CSV into my html file

Resolved
Nathan Wells asked on September 27, 2018

Hello, I am looking to program the upload of a csv file into flexmonster within my html file.  Essentially, I would like to have my data be present on a table when I open up my html file.  I don't know if this is possible without any server interaction, is it? I have tried running through tutorials and other help forums, but can not seem to find an answer. 
Thank you!

1 answer

Public
Ian Sadovy Ian Sadovy Flexmonster September 27, 2018

Hello Nathan,
 
Thank you for the question.
Actually, there is no option to include CSV data on the HTML page. The recommended way is to refer to the CSV that is located on the server and accessible via URL.
 
But, as a workaround, you can convert your CSV file to JSON (e.g. using https://www.csvjson.com/csv2json) and then include it in the HTML file as following: http://jsfiddle.net/flexmonster/n0wjbu6g/
 
Please let me know if you have any other questions.
 
Regards,
Ian

Please login or Register to Submit Answer