Javascript Input/Keyboard Listener for Barcode Reader

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: [url removed, login to view]

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.

Compétences : Javascript

en voir plus : javascript keyboard listener, barcode reader javascript, javascript barcode listener example, javascript barcode reader, javascript barcode listener, javascript keyboard input, javascript barcode scanner input, keyboard javascript, barcode listener, javascript barcode scanner, barcode scanner javascript, keyboard listener javascript, javascript keyboard, javascript listener, javascript barcode scanner listener, javascript listener barcode reader, javascript keyboard listener barcode, javascript wait input, javascript exclamation, javascript keyboard handler

Concernant l'employeur :
( 1 commentaire ) West Vancouver, Canada

Nº du projet : #382610

6 freelance font une offre moyenne de $220 pour ce travail


Hello,I can do this.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(31 Commentaires)

Please see PMB. Thank you.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(2 Commentaires)

I can help you

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(3 Commentaires)

I offer over 30 years electronic design experience, hardware, firmware, special applications software. In the last several years I have branched out into website development (ie, software development). For examples see Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(0 Commentaires)

Hello Sir Please Check PMB for bid detail. Thanks

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(0 Commentaires)

please check PMB

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(0 Commentaires)