可以在各种移动网络浏览器中捕获签名吗? [英] Signature capture possible in various mobile web browsers?
问题描述
我的公司正在考虑为现场数据输入提供一个轻量级的移动网站(我们已经有了一个胖客户端移动应用程序).一个硬性要求是我们必须能够捕获签名.
My company is considering offering a lightweight mobile web site for data entry in the field (we already have a thick-client mobile application). One hard requirement is that we must be able to capture a signature.
是否有任何现有技术可以在各种移动设备/网络浏览器中捕获签名,特别是在移动网络浏览器内运行的网页内?我只要求在-浏览器解决方案,而不是胖客户端.
Is there any prior art for capturing a signature, specifically inside a web page running inside a mobile web browser, across a wide variety of mobile devices/web browsers? I am only asking for in-browser solutions, not thick-clients.
出于显而易见的原因,设备需要配备触摸屏.
For obvious reasons, the device would be required to have a touchscreen.
当然,有许多不同的移动浏览器具有各种功能.理想的解决方案应该支持尽可能多的浏览器,并根据浏览器功能优雅地降级.
Certainly there are many, many different mobile browsers out there with a wide variety of capabilities. The ideal solution would support as many browsers as possible and degrade gracefully based on browser capabilities.
我已经知道某些版本的 Flash 可能会提供此类所需的绘图 API,假设所需设备的浏览器支持 Flash.
I am already aware that certain versions of Flash might provide the drawing APIs needed for something like this, assuming the desired device's browser supports Flash.
我还知道适用于 Pocket IE 的第三方 ActiveX/OCX 控件在 Windows Mobile 设备上.用户在使用前需要在浏览器中手动下载/安装控件.不幸,但可以接受.
I'm also aware of a third party ActiveX/OCX control for Pocket IE on Windows Mobile devices. It is necessary for the user to manually download/install the control within the browser before use. Unfortunate, but acceptable.
我个人不知道有多少移动浏览器支持托管 Java 小程序,但可能有一些.同样,基于对各种 Java API 的支持,这也许是一个可能的途径.
I'm not personally aware of many mobile browsers that support hosting a Java applet, but there are probably some. Again, based on the support for various Java APIs, perhaps this would be a possible avenue.
Javascript 可以做到这一点,如果设备上的引擎和处理器足够强大.
Javascript could do this, if the engine and processor are robust enough on the device.
最后,这里完全是白日梦,也许可以让用户使用移动设备的相机在一张普通纸上拍下签名的照片,然后以某种方式将其视为有效签名.但是,这会生成位图图像,而不是我可能会在所有其他情况下收集的矢量.此外,通过相机应用集成照片拍摄并使用网络浏览器应用上传照片,同时将该特定图像与正在捕获的其余数据相关联,如果不是不可能/不合理的话,也是非常困难的.
Finally, total pipe-dream here, perhaps one could have the user take a picture of a signature using the mobile device's camera on a plain piece of paper and somehow count that as a valid signature. However, this would produce a bitmap image, as opposed to vectors which I'd likely be collecting in all other instances. Also, it would be pretty difficult, if not impossible/unreasonable, to integrate the taking of the photo via a camera app and upload that using the web browser app while associating that specific image with the rest of the data being captured.
谢谢.
推荐答案
现在有一个 jQuery 插件可以做到这一点 -> http://thomasjbradley.ca/lab/signature-pad
There is a jQuery plugin to do this now -> http://thomasjbradley.ca/lab/signature-pad
上一个链接截至 2016 年 3 月 17 日处于非活动状态,但相关存储库位于 GitHub 上:https://github.com/thomasjbradley/signature-pad
The previous link is inactive as of March 17, 2016, but the relevant repository is on GitHub: https://github.com/thomasjbradley/signature-pad
这篇关于可以在各种移动网络浏览器中捕获签名吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!