本文介绍了我可以通过网页访问Prox卡吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个内部的基于网络的实用程序,用于跟踪员工培训。目前,为了表明培训已完成,正在接受培训的员工必须输入其员工编号和个人识别码。然后,进行培训的人也必须这样做。此实用程序运行在以Kiosk模式运行Chrome的专用触摸屏计算机上。
公司中的每个人都已携带。我还有一个阅读器。获取有关哪个员工携带哪张卡是我可以处理的问题的信息。我遇到的问题是能够从网页访问智能卡读卡器。我遇到了Google的,但它似乎只能在ChromeOS上运行。
由于2017年可能非常明显的原因,我想避免使用Java或Flash与此硬件连接。我认为我的理想是Chrome的扩展,它可以识别特殊的标记(可能是< div>
,特定的 id
)并显示扫描该卡的指示。一旦检测到卡片扫描,它就会提交表格。很显然,编写一个小小的JavaScript将它们放在一起是没有问题的。
我愿意接受其他选择,但也希望避免返回到Internet Explorer。我原本在这些计算机上运行IE,但由于一些渲染问题将它们全部切换到Chrome。
以我喜欢的方式解决此问题(使用Chrome的插件/扩展程序与智能卡读卡器进行交互)。但是我可以通过在VB.Net项目中使用来实现它。 VB.Net代码能够与智能卡阅读器(在我的情况下为HID 5025 CL)交互,并将这些结果传递给CefSharp正在处理的网页。
有关更多详细信息(以及一些代码),请参阅。
I have an internal web based utility that we use to keep track of employee training. Currently, in order to indicate that training has been completed, the employee being trained has to input their employee number and a PIN. Then, the person conducting the training has to do the same. This utility runs on dedicated touch screen computers that run Chrome in kiosk mode.
Everybody in the company already carries a Prox Card. I also have a 5025CL reader. Getting the information about which employee carries which card is an issue I can handle. What I'm having an issue with is being able to access the smart card reader from the web page. I came across the Smart Card Connector from Google, but it appears to only work on ChromeOS.
For reasons that are probably pretty obvious in 2017, I'd like to avoid Java or Flash for interfacing with this hardware. I think my ideal would be an extension for Chrome that can recognize a special tag (probably a <div>
with a specific id
) and display instructions to scan that card. Once it detects a card scan, it submits the form. Obviously writing a little JavaScript to pull that together is no issue.
I am open to alternatives, but would also like to avoid going back to Internet Explorer. I originally ran IE on these computers, but due to some rendering issues switched them all to Chrome.
解决方案
Sadly I was unable to solve this issue in my preferred way (with a plugin/extension to Chrome for interacting with a Smart Card reader). But I was able to get it working by using CefSharp in a VB.Net project. The VB.Net code is able to interact with the Smart Card reader (in my case HID 5025 CL) and pass those results to the web page being processed by CefSharp.
More detail (and some code) can be found as the answer to another question.
这篇关于我可以通过网页访问Prox卡吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!