Refreshing data in HTML for Excel Download

Yes i understand you very well. I designed once a similar HTML-SCRIPT, which do the same, but without J-Query (i do not know J-Query, so i had to code in pure JS). My suggestion would help you, in case of using pure script.
I think in this case i can’t help. If i am honest → i am to lazy to learn J-Query :rofl: at moment.

Is your code from the —> Example-Section of Ziv-Assors post?
I once saw also your posts in there.

Here you will find an example, which has exactly the same problem.
https://www.media-junkie.com/rd-database-manager

How to see the problem?


The same situation like you described…
The more times you click onto the “Excel”-button, the bigger gets the table.

Your HTML-Code will do the same thing, like mine. → Generating table-content.
All you have to do is → first to delete your table, and then reconstruct it with new data, every-time when HTML-component gets its values.

https://www.w3schools.com/jsref/met_table_deleterow.asp