Javascript Input/Keyboard Listener for Barcode Reader

Annulleret Opslået Feb 7, 2009 Betalt ved levering
Annulleret Betalt ved levering

I am developing a parts database system and am a bit short on time. I'd like to contract out a bit of Javascript development.

I want to enable a barcode scanner to be used as shortcuts/input on various pages of the system. The barcode scanner acts exactly like a keyboard input.

There will be two parts:

1) A javascript listener that listens for the barcode and extracts it

2) A handler which will figure out what to do with the barcode

This project is ONLY for #1 above.

=====================

The "keyboard" input when a barcode is scanned is as follows:

!![symbology ID][barcode][newline]

- It starts with TWO exclamation points. You can use this to initiate listening for a barcode

- Symbology ID is optional and may be one of: A, E0, FF, F, B1, B2, B3, ]e0

- Barcode can be any length and consist of numbers, letters, spaces

- The end of the barcode is signaled by a newline

How I envision it working:

- A listener will listen on the document for two exclamation marks (!!) in a row.

- If the time between characters inputted is more than a second, it should start over, and (if possible) pass along the inputted input to the page. For example, if I'm in a text input box and type '!!hi' and wait a second, then that text should get inputted there after the timeout.

- If a barcode is read properly, the characters should not be output anywhere on the page.

- I should be able to set a handler function. The handler function gets passed two parameters: 1) the barcode (without !!, symbology id, or newline character). and 2) the symbology id, if present.

- My various handler functions I will write and will do things such as adding a lineitem to an order via ajax, looking up a product, etc. depending on the context in which a barcode is scanned.

You should be able to test function by entering a barcode on your keyboard (but you might have to increase the timeout between characters). If you set up a web page during development with the javascript on it, I can test it out myself with the actual scanner whenever you want.

This code will be open-sourced when done. Comments in the JS and configurability are welcome.

This library should get you part of the way there: [login to view URL]

I do have Prototype loaded on many of the pages this will be used on, so if you feel you must use it, you can.

JavaScript

Projekt ID: #382610

Om projektet

5 bud Remote projekt Aktiv Feb 8, 2009

5 freelancere byder i gennemsnit $224 timen for dette job

Rulon

I can help you

$200 USD in 4 dage
(3 bedømmelser)
3.2
waswas

Please see PMB. Thank you.

$250 USD in 3 dage
(2 bedømmelser)
3.2
consus

Hello Sir Please Check PMB for bid detail. Thanks

$250 USD in 4 dage
(0 bedømmelser)
0.0
alexandrz

please check PMB

$170 USD in 4 dage
(0 bedømmelser)
0.0