473,467 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get Barcode scanner data into Web Application

shivaleela
3 New Member
Hi,

I am new to this barcode programming.My application is i'm working on Kiosk which has barcode scanner and i want to use the information of this scanner into my application. So could anybody tell me what all i will need to get the barcode data into my application. I mean do I need any other ports or devices to connect to barcode scanner and decode the data for my application..

Please help me on this

Leela
Aug 15 '07 #1
3 6946
Plater
7,872 Recognized Expert Expert
I mean do I need any other ports or devices to connect to barcode scanner and decode the data for my application..
Depends on the barcoder. Check with the manufacturer for how to interface to it.
Someone a few days ago had a barcode reader that acted like a keyboard
Aug 15 '07 #2
shivaleela
3 New Member
Depends on the barcoder. Check with the manufacturer for how to interface to it.
Someone a few days ago had a barcode reader that acted like a keyboard

Thanks Plater ...
The Barcode scanner is in built in Kiosk so i dont know which barcoder it is... So i'll check with manufacturer for this ..

Thanks
Leela
Aug 16 '07 #3
ZMan9854
1 New Member
Hello,

If your barcode scanner acts like a keyboard (for example if you can just scan something into a text document), you can use this javascript to grab the data and filter it against normal keyboard input.

Barcode scanners that support the keyboard wedge feature usually dump a line break after entering a barcode - this script takes advantage of that. If your scanner does not do this, simply take out the e.which == 13 && section of that if (but then if you type four numbers very quickly, this could be interpreted as a barcode scan).

the function handleScan would be your own javascript function that handles the scan. You can use ajax or regular form submission from here to get the barcode to your back-end.

Let me know if I can be of any further help!

var barcode = '';
var bc_timeout;
function getScan(e) {
if (e.which == 13 && barcode.length > 5) {
handleScan(barcode);
barcode = '';
e.preventDefault();
return;
}

var keynum = e.keyCode;
var keychar = String.fromCharCode(keynum);
if (!isNaN(keychar)) {
barcode += keychar;
clearTimeout(bc_timeout);
bc_timeout = setTimeout('emptyBarcode()', 50);
}
}

function emptyBarcode() {
barcode = '';
}
Aug 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: CHANGE username to westes | last post by:
What are the most popular, and well supported, libraries of drivers for bar code scanners that include a Visual Basic and C/C++ API? My requirements are: - Must allow an application to be...
4
by: Tom | last post by:
Using VB6, I want to read barcode data into an Access 2000 DB. What do you get when you read a barcode? Text or numbers. How do you define the field were the data would be stored? Thanks in...
10
by: Mudasir Ahmed | last post by:
I Guys : I am working on a Application to read barcodes from a scanner and list them in a ListBox on a web page. I was wondering if any one has done a similar job. Currently I have attached the...
2
by: Dan | last post by:
I have an application that uses a COM port barcode scanner. This uses a listener to notify the application when a barcode has been scanned. The application now needs to be modified to use a Human...
5
by: neilphan | last post by:
Hi all, I have an application that uses input from a barcode reader via a USB port. My application works fine only if the application HAS FOCUS. If the user opens up another application (not...
2
by: Jay | last post by:
I'd like to be able to capture barcode scans (ISBNs of books) from a barcode scanner. I already have a barcode scanner which has a USB interface, and by default the scanner acts like a second...
4
by: madunix | last post by:
I am in the process to create an online form using PHP with DB Oracle or MySQL, this form which consist of 2x parts personal data and finance data, and it will be filled by the users, once the...
4
by: djbaker | last post by:
Greetings, I would like to integrate a barcode scanner into the current project I am working on. I have been looking around teh web and with the exception of embeded devices I cannot find many...
7
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.