Offline support of WebSite

I am working on a WebSite which requires offline storage of data. ie if the network is down the data is stored locally on the client's PC ad it is sent to the server next time the user goes online.

For detecting the network status I have used jquery AJAX calls to the server (Couldnt find any thing better than that ? please suggest other possible ways) . The challenge here is to store the data locally in a secure way so that the data cant be deleted by the user intentionally or accidentally.

How can I achieve that ?

Thanks in advance,


Try the localStorage API. http://hacks.mozilla.org/2009/06/localstorage/ It's implemented a few modern browsers.

EDIT: In most browsers, clearing cookies clears localStorage.

链接地址: http://www.djcxy.com/p/41176.html

上一篇: 使用Node.JS和CouchDB的离线应用程序

下一篇: 离线支持WebSite