I am building an application in javascript that needs to be able to run completely offline. The problem is, I need to know if the browser crashes, or is accidentally closed, that the data will be recoverable. What is the best way to store data to use in an active app and store in a file?
I have looked at SQLite, but am not sure it stores data persistently or how to pull the data from a file once browser has been closed/reopened.
Thanks for the help!
Offline application needing database
Moderator: General Moderators
-
jabbaonthedais
- Forum Contributor
- Posts: 127
- Joined: Wed Aug 18, 2004 12:08 pm
Re: Offline application needing database
You may be able to use cookies, but I don't know how cookies work when the page is run locally. If you have a captive audience that is using nothing but the latest & greatest browsers, you may be able to use a local database as described by the HTML5 spec.
http://www.google.com/search?q=HTML5+ja ... =firefox-a
http://www.google.com/search?q=HTML5+ja ... =firefox-a
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
jabbaonthedais
- Forum Contributor
- Posts: 127
- Joined: Wed Aug 18, 2004 12:08 pm
Re: Offline application needing database
Thanks, I think the HTML5 local storage may be just what I need!