lundi 30 septembre 2013

Programming Question... Web application access to Desktop Services

I have a question for other software developers ...



I'm currently working on a web application (PHP/Javascript, hosted on a Linux server). This will be used by a small group of people within one company (using either Chrome or IE on a Windows computer). Now, users of this application will have a special scanner attached to their computer (similar to a bar-code reader) as they use the application.



The web application needs to be able to read information from the scanner and put the results on one field (and only on one field) of a web form.



So, I'm trying to figure out the best way to read from the scanner.



Someone had suggested doing a keyboard insertion when something was scanned; however, there's the problem if the user doesn't have the cursor in the right field of the web form when the scanning takes place.



I figured the best way would be to write a Windows service or application on the desktop that waits for a TCP/IP socket connection; there would be a button on the form that calls a Javascript function that would send a request to the Windows service to start scanning; the scanner would return a value to the function which would populate the field.



I've been doing some research on how to do this (both through Google and by talking to other developers here)... I've been getting some conflicting information... some sources have said that Javascript can talk only to the server, other sources have suggested that TCP/IP isn't supported by all browsers.



So, would my idea work? Or does anyone have any alternate suggestions?





via JREF Forum http://forums.randi.org/showthread.php?t=266076&goto=newpost

Aucun commentaire:

Enregistrer un commentaire