bradgrafelman;11013863 wrote:
And of course you can't do anything like this in Javascript (who in their right mind would design a browser that allows such a scripted language access to read/write files directly to/from your hard drive these days?!).
Pretty much everyone, and if they don't allready, it's coming. But it'll be sandboxed data adhering to the same origin policy
Check out the offline storage capabilities of your intended target browser(s): web storage, indexeddb, web sql db.
Web storage consists of localstorage and sessionstorage. See if you can get a javascript wrapper for it (such as jStorage - never used it myself though) since it will fall back on userData for older IEs. I believe all current IEs lack support, but since they have userData, there should be no need to fall back to cookies and window.name for local and session storages respectively. The difference between local and cookies is mainly that cookies are always sent with every request, which you want to avoid if you store a lot of data.
IndexedDB is simple, but lets you index fields to do range searches etc, and also implements a cursor so you can iterate over your result sets. Present in FF and Chrome. Announced for IE10.
WebSQL is pretty much supported by everyone but IE and FF. But mozilla doesn't seem to want to implement it.
Either way, if you target specific browser(s) only, choose what's available. If you can force users to go with a specific browser, choose whatever seems best to you. Else, I'd recommend webstorage through a js wrapper with userData fallback.