How does Web Application read Barcode?
How does Web Application read Barcode?
So, here is the case…
I have my web application.
What I want is to input the decoded-barcode value to text field (
)
Let’s say that the cursor is already focusing in the text field,
Now purchase a new Barcode Scanner, instal it to my computer, and scan a barcode label.
Can it directly “paste” into the text field? (I mean the value of decoded barcode, for example: 11234554321)
Thanks in advance :)
Best answer:
yes, if that is the focused field….scanning a barcode is just like typing text…Keep in mind, you may need to provide a hard return at the end of you barcode to meet your needs…
Tags: application, Barcode, read
Under Forum

2 Comments for How does Web Application read Barcode?
1. Alex S | June 29th, 2007 at 10:30 am
It depends on what kind of interface to your computer your barcode scanner has. Most barcode scanners come with a “keyboard wedge” which connects in-line with your keyboard cable, and then whenever you scan something the number is sent to the computer exactly as if you had typed the number on the keyboard.
The other connection method is by USB or Serial/Parallel, and these barcode scanners need drivers and will have software so that you can program what you want it to do with the decoded value. I would imagine that you would be able to set it so that it appears that the user has typed it on the keyboard.
The easiest option is to go for a keyboard-wedge type scanner, as these will work with all computers immediately and will work in any program/web application!
2. Bill F | June 29th, 2007 at 11:07 am
The easiest answer is to use a USB keyboard wedge scanner. Since many computers now-a-days don’t have legacy PS/2 style ports, get a scanner that has a USB connection. Both Windows and Linux operating systems have built in drivers for a USB keyboad connection. When you first plug the scanner in, the operating system will automatically load the USB keyboad driver. When you scan a barcode, as long as the focus is in your desired text box, the data from the barcode will be input into that text box. The same way as if you’d typed it on the keyboard.
You can find those scanners on eBay for a cheap price. Just look for one that has a USB connection.
Leave a Comment for How does Web Application read Barcode?
Trackback this post | Subscribe to the comments via RSS Feed