473,378 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to get Barcode scanner data into Web Application

shivaleela
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 6942
Plater
7,872 Expert 4TB
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
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
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.