HTML 5 & Javascript desktop application and acces to project files -


I am preparing a small application written in HTML and Javascript for desktop PC, but obtaining file list from my application There is a big problem in the Directory (most of the jpegs list from the Gallery folder) to not hardcode all the names inside HTML / Javascript.

Currently I'm testing the app in Chrome kiosk mode. And there is no server or online access. This application will work offline on dedicated PC machine.

What is the easiest way to get access to reading files from the application directory?

Do I have to pack my app in something like Chrome app, APJs, avasaminam to solve this app?

You ignored:

chrome.runtime GetPackageDirectoryEntry (function callback)

gives a directoryEntry to your app In the root of the folder you can get the required file list from that directoryinter .

For information on what to look for, and what to do with the object received. Ignore warnings about abandoned standards: Chrome intends to continue supporting this API.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -