iPhone 数据表单提交最佳实践?
我正在启动一个新项目,我们需要使输入网络数据表单成为移动设备上的轻松体验。
目前,我们的网站数据表单无法设计样式并使其适合移动设备,它们也驻留在公司防火墙后面,但是我们可以通过 XML 进行 POSTS 来提交数据表单。
我目前尚未决定哪种方法最好。
- 使用 iOS 组件在 iPhone 上本地重建表单
- 以某种方式在移动设备上创建本地 HTML5 数据表单,然后让 iPhone 解析该表单并通过 XML 提交。
过去是否有人在移动设备上做过类似的事情,很高兴听到您的经历,该项目的一个关键部分是我们还需要离线保存数据表单,并在设备重新上线时发布它们。
I am starting a new project where we need to make entering web data forms an easy experience on mobile.
Currently our web site data forms cannot be styled and made mobile friendly they also reside behind a company firewall, however we can do POSTS via XML to submit a data form.
I'm currently undecided to which approach would be best.
- Rebuild the forms natively on the iPhone using iOS components
- Somehow create a local HTML5 Data form on the mobile, and then have the iPhone parse this and submit via XML.
Has anyone done similar on mobile in the past, it would be great to hear of your experiences, one key piece to this project is that we also need to have the data forms offline, and have them posted when the device is back online.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您提供的背景信息,我相信唯一的方法是使用本机 UI 组件。原因如下:
您已声明需要离线表单“提交”。如果您有一个本地表单,可以将信息存储在某处,然后在连接时提交它,那么您会更轻松。
您已经表达了
在移动设备上提供轻松体验的愿望。
为此,我自然会推荐本机 UI 控件。您的自定义“本机”Web 控件更有可能令人困惑且难以使用。与 UIKit 相比,UIKit 背后可能有大量的研究(以及数百万满意的用户的支持。)从长远来看,如果您使用本机控件,将更容易与设备的其他部分集成。
对于发出 XML 请求,我推荐ASIHTTPRequest 库。
Based on the background information you've given, I believe that the only way to go is with the native UI components. Here's why:
You've stated the need for offline form "submission". You will have a much easier time if you have a native form that stores the information somewhere and then submits it when connected.
You've stated the desire to provide
an easy experience on mobile.
For that, I would naturally recommend native UI controls. Your custom "native" web controls are more likely to be confusing and difficult to use. Contrast that with UIKit which presumably has a lot of research behind it (and millions of satisfied users to back it.)In the long run, it will be easier to integrate with the rest of the device if you use native controls.
For making XML requests, I recommend the ASIHTTPRequest library.
在我看来,更好的选择是使用 iOS 组件重新创建表单。如果做得好的话,它会更加用户友好,而且速度更快。
In my opinion, the better option would be to recreate the forms using the iOS components. It would be much more user friendly, and faster, if done right.