Offline application needing database

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jabbaonthedais
Forum Contributor
Posts: 127
Joined: Wed Aug 18, 2004 12:08 pm

Offline application needing database

Post 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!
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Offline application needing database

Post 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
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

Post by jabbaonthedais »

Thanks, I think the HTML5 local storage may be just what I need!
Post Reply