开发者

How can I cache my dynamic iPhone webapp for working offline?

I am having an iPhone web app written in PHP and using the WebApp.Net framework. I would like to make this application work offline as well. As I understood I can not use the manifest tag of HTML5 because my files are PHP and not html. Or at least it didn't work with it and I don't know if I am开发者_如何学运维 in the right direction.

Does anyone have any idea for how can I do it?

Thanks


You can cache any static file, no matter how it is generated. You must cache via manifest all your html, javascript and css (and graphics also, if they are small). Use LocalStorage to store JSON requests needed in offline mode. Use online mode to synchronize data you work on into LocalStorage.

You haven't stated what is your application for and what should be done in offline mode, but generally the only way I see as for now is to fully AJAXise all functionality that will work in offline.

You can browse StackOverflow for tags html5+javascript for general discrussions, or html+javascript+mobile for more specific.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜