PDA

View Full Version : Barcode Scan and Javascript


Bubb
05-08-2008, 12:48 AM
Hello!

I am writing a program where I can scan a barcode and the data is inputed into an 'item' textbox. Once the scan is in the 'item' textbox, the user has the option to tab down to change the 'quantity' textbox, which has a default value of '1'. However, I would like to speed up the process by having the user scan the barcode, then look at the 'item' textbox and then seeing that it is ok, have them scan another barcode to move on to the next item, so if they don't have to change the quantity textbox they can just rapidly keep scanning. I have already tried putting an 'enter' prefix for the barcode scanner so it would submit prior to the next scan, but that screws things up good, so I would like to make the 'item' textbox have an event like 'onChange' so that when a new barcode is scanned it fires the submit before putting new data in 'item' textbox. Any help would be appreciated!

Bubb

Bubb
05-08-2008, 12:49 AM
I might add, onChange doesnt seem to work when I used this code:


OnChange="document.form.itemtextbox.submit();"