如何开发 iPad Web 应用程序来应对 WiFi 中断
我正在考虑开发一个主要针对 iPad 的网络应用程序。它将是一个相当标准的 html+jQuery 客户端,但我正在考虑让它能够适应 wifi 中断,因为它将在 wifi 可能不稳定的会议上大量使用。我正在考虑使用存储在大量 cookie 中的 json 格式的对象,捕获的数据也存储在“json cookie”中,运行一个任务,该任务将轮询服务器连接并在可以时上传我的 json cookie。
这个整体架构听起来可行吗?任何人都可以建议一种更好的方法来管理对象和数据的客户端缓存吗?
非常感谢。
I'm looking at developing a web app that is primarily aimed at iPads. It will be a fairly standard html+jQuery client, but I was pondering making it resilient to wifi outages as it will be used a lot at conferences where wifi may be patchy. I was thinking of using json-formatted objects stored in lots of cookies, with captured data also being stored in 'json cookies', with a task running that will poll for a server connection and upload my json cookies when it can.
Does this overall architecture sound workable, and can anyone suggest a better way to manage client-side cacheing of objects and data?
Thanks very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 HTML5 的离线 Web 功能,以及 浏览器的 HTML5 客户端存储,而不是 cookie。这就是当今的发展方向,尤其是 iPad 上的浏览器对此的全面支持。
Check out the offline web capabilities of HTML5, together with HTML5 client-side storage of the browser instead of cookies. This is the way to go nowadays, especially with the full support of this by the browser on the iPad.