|
How would you get a barcode input and place the value in a web form? |
|
I think the fundamental problem is that in our minds we've transformed the Web from being a 'document-centric' platform to a rich application platform—so we expect a Web page in a browser to be able to behave like a native application would, when in fact, the underlying model is still that of a static document, running in a sandbox (the browser). Having said that—standard HTML + JS alone won't help you. Your best bet is to try either a Java applet or Flash/Flex, or if coding for iOS or Android then their specific APIs. Alternatively, see if you can use the onboard camera (on most laptops, tablets and phones) to take a picture, then 'scan' that picture. I know of several iOS apps that function this way. |
I just realized that a barcode scanner works the same as a keyboard. So what is needed is to have the focus on a textfield then scan. The value will reflect on the textfield.