Home » excel » javascript – letting users import an excel document and then populating a page with it

javascript – letting users import an excel document and then populating a page with it

Posted by: admin May 14, 2020 Leave a comment

Questions:

for my website, I need to create a button where a user is prompted to import an excel file, and then be able to use that data in an html file, for example, to put in a div tag.

I’ve searched stack overflow, but the closest I could find was Javascript pulling from excel

Which only works for internet explorer and doesn’t explain how to import or export the excel file.

Can this sort of thing even be done?

How to&Answers:

You will likely have to process the excel file on the server. Or have the user present a CSV file (exported from excel) that can be processed using javascript.

The site could upload the excel format data, then process on the server using -:

OR

Client-side there is a javascript library http://code.google.com/p/jquery-csv/ which would facilitate output of CSV data using js. But that
requires CSV format.