skip to Main Content

So i have been asked to make a table that contained 4 grids and 2 rows, and a button that basically adds more rows with more information in them, i have managed to do all that but the tricky question is that i need to be able to somehow transport all of the information onto an excel like database so that it always saves, and when they need to bring said html page the information is shown there not just 2 rows and 4 grids

I have tried many things such as connecting an excel towards the page and searched through google but nothing.

2

Answers


  1. It sounds like you asking for a localStorage so when you reload the page the data/info will stay.

    https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

    I can advise to read this. I think this is what you are aiming for.

    Login or Signup to reply.
  2. You can save your work as a CSV or TSV, and then you can use FileReader.readAsText() to read it when page loads and with the returned string, you can construct tables. CSV/TSV files can be opened in spreadsheet softwares including Excel.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search