开发者

Web mobile application with offline mode

To begin, I'm sorry for my awful english :)

I have a web ap开发者_如何学Cplication that will communicate frequently with a server running a webservice offering JSON / XML. The application will send contact details / bills / products, and will have to manage an offline mode.

I thought to use this DOM cache (HTML5). However I must have constantly an updated customer list, bills etc. in offline mode because I can not make a request to the server.

It is therefore necessary to have an xml file on the mobile ... which will be read and modified. Is it possible and not too difficult to manage XML plaintext database with ExtJS (or another framework) on a mobile? (Android)

Thanks.


It's far easier to do with HTML5 storage, which you can use directly without the need for Sencha Touch API calls (providing you're on a supported device, iOS Safari supports web storage).

Have a read of this article from the Sencha blog.


Have a look at Lawnchair - this can be included in your app without a framework.

If you decide to use Sencha Touch you can use localStorage, which allows you to store key/value pairs in the HTML5 Web Storage on the device.

See this tutorial on the Sencha website. You could use localStorage to cache your json feed whilst making static assets available offline with a cache manifest file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜