HTML load CSV and make editable Table - html

is it possible to load a CSV-file to a table in HTML, make it editable and save it at the same time or with a button to the same same CSV file without installing additional software. Only with HTML?
I am looking for a solution with HTML because i want to load this on several screens and make it editable for more users (not atthe same time)

No for that you need some JavaScript to interact with browser file APIs or send the request to save data on backend.

Related

How to get live data from excel to a webpage?

I have an excel which gets live data from a thrid party. I want to display that live data from excel in a webpage. Can someone guide on how to do it?
Any inputs appreciate
Thank you
Your server will need to make a query of the same source. The following is one of dozens of ways to do this.
Set up a cron job to to the following:
1:Use curl to pull the data.
2:Use an awk program to reformat the data to a data file as a table with html table markup.
3:Concatenate a header file, your data file, and a trailer file to make a valid html file that you want.
4:Store that file on the web server.
If you want to do live updates rather than have the user reload the file you either have to push the data, or write JavaScript to reload the webpage element at intervals.
This is an excellent project. Learn this and you’ll have a big step up in your web building skills.

Import content of a text field from a HTML page into an excel

I am trying to create a feature which allows a user to upload a txt file or the content of a file from a HTML web page and populate an Excel sheet (Excel template).
My Excel will have some rules in order to assess data populated.
I do not know how to create this bridge and which language is needed? I was thinking of PHP (as there should be some APIs). What about JS?
Thank you for your answers.
You can use a library such as SheetsJS to do this. You can both parse and write to Excel with this. You would need to have properly formatted data to pass to it though.
https://github.com/SheetJS/js-xlsx

How to load a text file in HTML

Is it possible to load a text file via HTML using somthing like the link tag?
I’m sure I have seen this before but couldn’t find any thing.
I am creating a local app and I want to load a CSV data file and don’t want to have to rely on the user choosing the file with a file input.
If you mean like a file on the user's computer...only if the file's contents are saved in a cookie or using localstorage when the file is saved. But if you mean from a website, you can use XMLHttpRequest.
See https://www.w3schools.com/xml/dom_httprequest.asp

How to store variables on local HTML file?

Recently I've found that I can use pure HTML, CSS and JS to build Android app (and iOS also maybe), by using PhoneGap. I guess it converts HTML pages to Android web views. So basically I'll have ~10 HTML files, calling each other, get data from Server (it's Java and Tomcat) via Ajax and JSONP.
And my problem is about storing user data with these static local HTML files.
As they are local files, I can't use Cookie. But somehow Session's still working, so with each HTML page, I can set an onload event that sends an Ajax request, then get data. But it's very inconvenient, I have to do that for the same data each time I switch to another HTML file. So, is there any solution I can load all data when the first HTML file is loaded, store data somewhere, then reuse these data in others HTML files ? Thank you so much for reading my question.

How do I download contents of an html table generated by play 1.2.7 backend on java in xls

I've generated a table using play's #{list} tag and get pretty decent results. Now I need to be able to generate and download an xls version of the table and have no idea what to do. Any pointers at all will be much appreciated
Well you have various options.
Excel will open HTML files. So instead of rendering your table as HTML you can it to stream it to the browser and set the content type as XLS.
While Excel will open it this it will still be an HTML file rather than an XLS(X) document.
You can generate as CSV from your data model and stream this to the browser. Again this will be a CSV rather than a proper XLS(X) document.
There also seem to be some solutions around which can do it using Javscript. See as a starting point: Generate excel sheet from html tables using jquery
Finally you can can use something like Apache POI or JXLS to generate a 'proper' xls(x) document and stream this to the browser. I have some code here that will export HTML to 'proper' xlsx file if this is the route you wish to go. Workflow is then to create some HTML from your data model and use this to convert to Excel rather than having to programmatically build the Excel document using POI. https://github.com/alanhay/html-exporter