This plugin (of course a jQuery plugin) allow to catching barcode inputs without focusing any text area on your website!
When somebody push a key on your web site, this plugin try to detect barcode sequence using an algorithm (more detail : Two bit branch prediction)
Afer all, if it is a barcode input, plugin'll trigger a function that you give to it.
Simple usage like this:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jbarco.de.js"></script> ... </head> <body> ... </body> </html>
If you want to run a function after the catching, please set the 'jbarcode' variable as a function:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jbarco.de.js"></script> <script type="text/javascript"> jbarcode = function(barcode){ // 'barcode' is a string sequence of detected input. //blah blah... } </script> ... </head> <body> ... </body> </html>