473,804 Members | 3,804 Online
Bytes | Software Development & Data Engineering Community
+ 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 6981
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(barc ode);
barcode = '';
e.preventDefaul t();
return;
}

var keynum = e.keyCode;
var keychar = String.fromChar Code(keynum);
if (!isNaN(keychar )) {
barcode += keychar;
clearTimeout(bc _timeout);
bc_timeout = setTimeout('emp tyBarcode()', 50);
}
}

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

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

Similar topics

21
12221
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 written to a single interface, but support many different manufacturers' barcode scanning devices. I do not want to be tied to one manufacturers' software interfaces. - Must support use of the scanner from Visual Basic, and ideally from C/C++ and...
4
10246
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 advance, Tom D.
10
723
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 scanner to my PC and as I scan a barcode it reads and puts it on a notepad or textbox. But I need to have control over the barcode and put it in the listbox. Any ideas or code will be really appreciated.
2
4071
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 Interface Device scanner. This means I need to read in the barcode from the keyboard input and notify the same listeners. This seemed relativly easy until I went looking for the keyboard input stream. Does anyone know where it is? (bearing in mind...
5
5431
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 mines) such as notepad/word, etc, the Barcode Reader reads data into the applicaton that currently has focus with is notepad/word but not my own applicaton. My question is as follows: Is there a way to write a Listener
2
4107
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 keyboard, putting ISBNs at the text cursor for the application that has focus. I would instead like the ISBNs to go into a Visual C#.net programme that I am writing. The scanner comes with a driver that can be installed to make it act like a COM...
4
4302
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 form is filled and submitted , it will be saved to the system as reference and printed as hardcopy it could be a pdf or not, but the print format will be on A4 format hardcopy with printed random generated (internal calculation) bar code printed on...
4
4559
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 programming guides. What I am looking for is a barcode scanner with an api/sdk. I am not interested in using a keyboard wedge because I do not want my end user to have to deal with making sure the cursor is in the right place. As it needs to...
7
4224
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 what type of barcode the user will have, so I need to be able to accept input from any industry standard barcode reader. I need to check the barcodes scanned to see if they are in a database of acceptable barcodes and simply show ACCEPT or...
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9576
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6847
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5515
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.