Page 1 of 1

Offline application needing database

Posted: Thu Oct 06, 2011 2:24 pm
by jabbaonthedais
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!

Re: Offline application needing database

Posted: Thu Oct 06, 2011 2:49 pm
by pickle
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

Re: Offline application needing database

Posted: Thu Oct 06, 2011 3:35 pm
by jabbaonthedais
Thanks, I think the HTML5 local storage may be just what I need!