Active-X 与 Ajax 互联网客户端-服务器通信
我必须在互联网站点网页上使用扫描仪。据我所知,Flash 和 Silverlight 目前都无法与此类硬件进行通信。看来目前没有 Active-X 的替代方案来执行此类操作(如果我错了,请纠正我)。
扫描图像后,我必须通过 HTTPS 将其发送到服务器并等待处理结果。
我在这里有一些替代方案:
- 以定期间隔启动 ajax 轮询
- 将轮询功能直接放入 active-x 组件中
您个人更喜欢哪种方法?
是否可以为 Active-X 方法建立事件机制(当服务器将结果推送回网页时?)。事件适用于 javascript/ajax 方法吗?
先感谢您!
I have to use scanner on Internet site web page. As far as I know not Flash nor Silverlight is capable to communicate with such hardware nowadays. It looks like there is no alternative to Active-X at present for such operation (correct me if I'm wrong).
After image is scanned I have to send it to server via HTTPS and wait for processing result.
I have some alternatives here:
- Start ajax polling with regular interval
- Put polling functionality straight into active-x component
What approach would you personally preffer?
Is it possible to establish event mechanism for Active-X approach (when server pushes result back to a web-page?). Will events work for javascript/ajax approach?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
让客户端扫描并上传文件。这些天就是这样做的。扫描软件是操作系统的一部分 - 至少在 Windows 和 MacOS 中是这样。
对于 ActiveX 对象,它将成为支持的噩梦。另外,想想所有 Firefox/Chrome/Opera/非 Windows 用户。
另外,我隐约记得 HTML5 中将添加扫描仪支持。
Have the client scan and upload a file. That's how it's done these days. Scanning software is a part of OS - at least, in Windows and MacOS it is.
With an ActiveX object, it will become a support nightmare. Also, think of all the Firefox/Chrome/Opera/Non-Windows users out there.
Also, I vaguely recall scanner support will be added in HTML5.