开发者

Active-X vs Ajax Internet client-server communication

开发者 https://www.devze.com 2023-03-06 02:41 出处:网络
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

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开发者_如何学C?

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消