Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
We are using Omnikey 5022 reader to read card,
to connect card to reader we have implement DLL through we retrieve data from cards.
restricted to IE browser only. we want alternative for it. so that we can use Omnikey 5022 on google chrome or opera etc.

Thank you in Advance.

What I have tried:

function testcomm()
		var testobj;
		var a ;		
		testobj = new ActiveXObject("TMHDLL.DLL");		
		a= testobj.GetEmpCode("2B3H212B5H21");		
		alert( e.message);
		return false;
Updated 27-Jan-23 2:30am

There is no alternative to ActiveX: and the reason why is the same as the reason it was only ever added to IE (and was later turned off by default).
Put simply, the whole technology was a massive security hole that opened up your whole system to the server.

And since ActiveX was only ever implemented in a browser almost nobody uses anymore, your only alternative is to contact the manufacturers of the device and see what they can suggest.
Share this answer
The only people who know are the makers of the device. Here is a link to their dev portal. Talk with them for answers: Developer Center | HID Global[^]
Share this answer
Like other said ActiveX Controls are no more supported however you can use following alternate solution.

* Build a Console / GUI Application/Service that will be installed on the machine on which the card gets connected
* build a web socket server that will expose interface for card reading in above console application
* Build a
Web Socket client app in react / angular / javascript that will integrate with web socket server.

Thorugh this web socket client you can pass instructions to read card reader.

You can find read sample clode from below
GitHub - hidglobal/HID-OMNIKEY-Sample-Codes: Sample codes for the OMNIKEY Smart Card Readers. Application contains simple examples of reader's functionalities based on the software developer guide.[^]

Hoping this would give you initial point to start.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900