Opening .odt files on webpage using html - javascript

I'm currently working on web page and trying to open .odt files by using html and javascript. The .odt files are stored in my computer and I want to print them in my web page. Plus, is it possible to store each sentences(which are in .odt file) in variables one by one? My goal is to open .odt file on web page, modify the contents of .odt file, and then save the .odt file back to my computer.
sorry that my question is abstract but I just started. There's not much related information on google please help 😥

Related

<input> to select files/folders automatically

I am using javascript and html to load a file (browser).
I currently have this:
<input type="file" id="file-input" #input="openFile" />
Then openFile() loads the file using the FileReader API.
My question is, since actually, I want the file to load dynamically - I do not want to have a user prompt for file input. Any way to achieve this? How about for directories (recursively get all matching files and open/display the files in the browser)?
The files I need to load are xml data files and will be parsed for displaying purposes.
These files are located locally (as part of the web page bundle). This web page will be loaded locally - no servers/local serveres whatsoever.
Help please!
Thanks!
It is not possible because of security policies. File input cannot choose element, it allow scammers to steal files from user's computer.

How can I allow the user to move / download a file from html FileAPI sandbox to his preferred location?

I've been using html File API to create files from data received over the internet. So far its been fine.
Once the file is created in the temporary file system of a users browser, the user should be able to download the file. I am not able to achieve this. The files are quite large, larger than the size memory (RAM). So I can't just add a link and create an object url.

Downloading loaded webpage as html

I'm new here. My problem is I got a loaded tab on chrome and the webpage is not accessible anymore.
anyway, the page contents are still on the server at least thumbnails.
Is there a way to download this tab entirely with its page structure as HTML for viewing later.
I don't turned off my pc for 2 days only hibernate it. Searching for a way but can't find any resource.
edit: the webpage is a meganz folder which has ~100 folders on it. i think it's very hard to download with page structure because it loads a file explorer application (server-side i think) when first loading the folder and files.
Either File > Save Page As.. (in Chrome)
or
FTP into the web server and download the whole folder/page from the public_html folder, if it is a static page. If it's not, you'll only get template files, and no content data.
or if you're just interested in reading the content:
File > Print > Save as PDF

How to track .js files loaded when website page is loaded?

I am trying to contribute to the Hospital Frontend, I am unfamiliar with the file structure however and want to be able to find which files are loaded when I load the page from my local server. Is there a tool that can allow me to do so?
Thank you.

javascript for re-directing local file

I am attempting to put together a short script that I want to place on a Google "Site"
page. What I want to do is select a file that is local to my browser and then
re-direct it to a folder on a local windows server. I have been playing with file
upload and then download but essentially getting nowhere. HTML 5 has a "Download"
tag but Sites appears to disallow it for some reason.
We use a mix of browsers here:IE(8-10),FF,Chrome.
I have seen many good solutions but they all seem to need server side code. Which I cannot
do.
Any advice is appreciated.

Categories