Dibatalkan

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.

Kemahiran: Javascript

Lihat lebih lanjut: 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, javascript keyboard listen, javascript listen keyboard, javascript barcode reader input, javascript listener barcode, barcode listener javascript

Tentang Majikan:
( 1 ulasan ) West Vancouver, Canada

ID Projek: #382610

6 freelancers are bidding on average $220 for this job

snowtigersoft

Hello,I can do this.

$200 USD dalam 5 hari
(31 Ulasan)
6.1
waswas

Please see PMB. Thank you.

$250 USD dalam 3 hari
(2 Ulasan)
3.2
Rulon

I can help you

$200 USD dalam 4 hari
(3 Ulasan)
3.2
wdanford

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 Lagi

$250 USD dalam 10 hari
(0 Ulasan)
0.0
consus

Hello Sir Please Check PMB for bid detail. Thanks

$250 USD dalam 4 hari
(0 Ulasan)
0.0
alexandrz

please check PMB

$170 USD dalam 4 hari
(0 Ulasan)
0.0