Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Barcode Scanner

Reply
Thread Tools

Barcode Scanner

 
 
Rajani
Guest
Posts: n/a
 
      09-30-2004

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
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      09-30-2004
=?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)

 
Reply With Quote
 
 
 
 
Jeff Cochran
Guest
Posts: n/a
 
      09-30-2004
On Thu, 30 Sep 2004 04:29:03 -0700, Rajani
<(E-Mail Removed)> 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
 
Reply With Quote
 
dlbjr
Guest
Posts: n/a
 
      09-30-2004
<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!


 
Reply With Quote
 
Rajani
Guest
Posts: n/a
 
      10-01-2004
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!
>
>
>

 
Reply With Quote
 
dlbjr
Guest
Posts: n/a
 
      10-01-2004
<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!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Singapore Post 4-State Barcode Support & Postnet Barcode Recognition sherazam Java 0 05-24-2012 09:55 AM
Read Barcode from Specific Area of Img & Create Fixed Size Barcode sherazam Java 0 03-01-2011 08:12 AM
Aztec 2D Barcode Recognition Support is Added in Aspose.BarCode sherazam Java 0 09-16-2010 10:44 AM
Suppress keyboard, allow barcode scanner teddysnips@hotmail.com ASP .Net 5 09-05-2006 01:51 AM
Question about Barcode Scanner connection magicianstalk Computer Support 1 09-01-2004 04:15 PM



Advertisments