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

Home Posts Topics Members FAQ

Barcode Scanner


I have tickets printed with barcode. When i scan that code is placed in a
text box of my form. How can i read from the scanner and put it in a specific
text box?

Or i directly want to insert into database. This is my actual requirement.

I tried at many sites. I didnt get reply. I am expecting the answer here.

Thanx in advance
Jul 19 '05 #1
5 5873
=?Utf-8?B?UmFqYW5p?= wrote on 30 sep 2004 in
microsoft.public.inetserver.asp.general:
I have tickets printed with barcode. When i scan that code is placed
in a text box of my form. How can i read from the scanner and put it
in a specific text box?

Or i directly want to insert into database. This is my actual
requirement.

I tried at many sites. I didnt get reply. I am expecting the answer
here.


This is no website, but a usenet group, so you could be in luck.

1 Do you want to do this on a client
2 that runs under windows [what?XP?]
3 [browser/wscript?}
4 connected to the server?
5 [via internet/lan?]
6 and the server runs asp?
7 what/where is the output of your barcode reader?

The ASP part is on topic here.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 19 '05 #2
On Thu, 30 Sep 2004 04:29:03 -0700, Rajani
<Ra****@discussions.microsoft.com> wrote:
I have tickets printed with barcode. When i scan that code is placed in a
text box of my form. How can i read from the scanner and put it in a specific
text box?

Or i directly want to insert into database. This is my actual requirement.


You can't do that with ASP classic, it's handled client-side. As long
as the focus is on the text input when scanned, it drops into the
field automatically. You'd need a Submit button or to use a
client-side submit process, such as Javascript or ActiveX input to
send it to the server for processing into the database.

Check client-side groups for setting the focus on a form.

Jeff
Jul 19 '05 #3
<html>
<head>
<title>BARCODE SCAN</title>
</head>
<body onload="form1.barcode.focus();">
<form action="myself.asp" method="post" name="form1">
<input type="text" id="barcode" name="barcode"
size="15" maxlength="15" onchange="submit();">
</form>
</body>
</html>

'dlbjr
'Pleading sagacious indoctrination!
Jul 19 '05 #4
Hello,

Thak you all for replying. Yes, i want to run it in intranet site using
ASP. Yea, once it is scanned, i want to split into different parts(job,
empid, operation_no)
and placed in the corr form fields. Then i click submit button to insert
into database.
Here, i want to save time for data entry. Means, i dont want to click submit
button for every code scanned. After i scan all the codes then i click
submit. How can i generate form which is filled with scanned barcode. Like
grid.

Thanx again
"dlbjr" wrote:
<html>
<head>
<title>BARCODE SCAN</title>
</head>
<body onload="form1.barcode.focus();">
<form action="myself.asp" method="post" name="form1">
<input type="text" id="barcode" name="barcode"
size="15" maxlength="15" onchange="submit();">
</form>
</body>
</html>

'dlbjr
'Pleading sagacious indoctrination!

Jul 19 '05 #5
<html>
<head>
<script language="javascript">
var strlist = "";

function addBarcode(){
if(strlist.length > 1){
strlist = strlist + ",";
}
strlist = strlist + form1.barcode.value;
form1.barcode.value = "";
list.innerHTML = strlist;
}

function kH(e) {
var pK = document.all? window.event.keyCode:e.which;
if(pK != 13){
return pK != 13;
}
else{
addBarcode();
setFocus();
return pK != 13;
}
}
document.onkeypress = kH;
if (document.layers) document.captureEvents(Event.KEYPRESS);

function setFocus(){
form1.barcode.focus();
}
</script>
<title>BARCODE SCAN</title>
</head>
<body onload="setFocus();">
<form action="" method="post" name="form1" id="Form1">
<input type="text" id="barcode" name="barcode"
size="15" maxlength="15" onchange="addBarcode();" onblur="setFocus();">
<input type="submit" value="Submit">
<input type="hidden" id="bclist" name="bclist"value="">
<div id="list" width="400"></div>
</form>
</body>
</html>

--
'dlbjr
'Pleading sagacious indoctrination!
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

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...
8
by: DS | last post by:
Does anyone know anything about barcodes in Access. I don't want to create them in Access. I merely want to scan whats already been created. I need to scan Liquor bottles. I have the scanner...
1
by: Darren Coleman | last post by:
I need help with 2 keyboard/input questions 1. How do i caputre all keypress events for my application/form? 2. How do I determine which keyboard sent the keypress? What i'm doing is using a...
6
by: Samuel Shulman | last post by:
I would like to add barcode functionality to my POS program How does one attach barcode reader is it usually USB port How can the program get the data read by the device Thank you, Samuel
2
by: Jay | last post by:
I have a barcode scanner with a USB interface. It acts as a keyboard (ie if I scan a barcode, it is placed at the text cursor as if I'd typed it on the keyboard). I'd like to bypass this...
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: Alper Ozgur | last post by:
Hi; How can i capture and decode the barcode that reading by an usb Barcode reader?
2
by: nmrpa91290 | last post by:
Hi, I am in the design phase of building a database that will track the productivity of my warehouse. I am thinking of using a barcode scanner to assist me with this. Employees will hopefully...
2
by: chris_gpf1 | last post by:
Hi, I'm working on a website where the user will have to scan a barcode with a serial barcode scanner. I get the scanner working and reading the barcode, but when I want to write the string in...
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: 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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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: 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 ...
0
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...

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.