手机网站/应用 - 捕捉数据离线和推住数据库 [英] Mobile site/app - capture data offline and push to live database

查看:131
本文介绍了手机网站/应用 - 捕捉数据离线和推住数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的网站,其中包括来自该网站的会员群体正在进行的数据采集。我想提供,它可以处理离线表单提交网站的移动友好的版本。我也想移动网站不是一个原生应用程序,我想preFER开发它作为一个Web应用程序,它会在iOS,Android的工作等 - 主要是由于没有必要的开发时间,开发平台的特定版本。但是,这是现实我一起处理离线表单提交目标是什么?没有人对此有什么建议吗?目前,该网站的PHP / MySQL为主。

I have an existing site which involves ongoing data capture from the site's member base. I want to provide a mobile friendly version of the site which can handle offline form submissions. I also want the mobile site not to be a native app and I would prefer to develop it as a web app which would work across iOS, Android etc - mainly due to not having the necessary development time to develop platform specific versions. But, is this realistic alongside my aim of handling offline form submission? Does anyone have any advice on this? The site is currently PHP/MySQL based.

感谢您的任何指针。

推荐答案

使用HTML5离线应用程序,localStorage的(看到这些在行动上html5demos.com)。要找出浏览器支持HTML5这个功能,请 http://www.quirksmode.org/webkit.html 并寻找应用程序缓存和localStorage的。

Use HTML5 offline app, and localStorage (see these in action on html5demos.com). To find out what browsers support this HTML5 functionality, go to http://www.quirksmode.org/webkit.html and look for appcache and localStorage.

您还需要弄清楚的时候把数据上传到服务器。所以,你还需要一些JavaScript code当用户在线时,它知道你的离线应用程序的一部分,知道有数据localStorage的,并且知道,当发布该数据。

You also need to figure out when to post the data to your server. So you'll also need some javascript code as part of your offline app that knows when the user is online, knows that there is data in localStorage and knows and when to post the data.

看看煎茶触摸,它是为移动应用和框架可以帮助你。

Take a look at Sencha Touch, it is a framework for mobile apps and may help you.

这篇关于手机网站/应用 - 捕捉数据离线和推住数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆