473,394 Members | 1,737 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,394 software developers and data experts.

Barcode as input and to save in sql server

Expand|Select|Wrap|Line Numbers
  1. <html> <head> <script language="javascript">
  2. var strlist = "";
  3.  
  4. function addBarcode(){
  5. if(strlist.length > 1){
  6. strlist = strlist + ",";
  7. }
  8. strlist = strlist + form1.barcode.value;
  9. form1.barcode.value = "";
  10. list.innerHTML = strlist;
  11. }
  12.  
  13. function kH(e) {
  14. var pK = document.all? window.event.keyCode:e.which;
  15. if(pK != 13){
  16. return pK != 13;
  17. }
  18. else{
  19. addBarcode();
  20. setFocus();
  21. return pK != 13;
  22. }
  23. }
  24. document.onkeypress = kH;
  25. if (document.layers) document.captureEvents(Event.KEYPRESS);
  26.  
  27. function setFocus(){
  28. form1.barcode.focus();
  29. }
  30. </script> <title>BARCODE SCAN</title> </head> <body onload="setFocus();"> <form action="http://bytes.com/" method="post" name="form1" id="Form1"> <input type="text" id="barcode" name="barcode"
  31. 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>
This is the code to read number of barcode data in a single text box one ny one and view in the same form itself but i dont know how to save to mssql server using asp script can any help me plese
Jul 14 '14 #1
0 1165

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...
5
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an...
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
0
by: mortb | last post by:
My problem is with a XML file that resides on my windows 2003 web server. I have this user control which I include on every page in my applicaiton. The control makes it possible for the users to...
2
by: FusionGuy | last post by:
I've created a file uploading handler, implemented as an httpHandler. Each time I attempt to upload a file, or files, my HttpContext.Request.Files property never contains the files that were...
2
by: Ada | last post by:
First of all, I thought this might be a directory security issue but it's not. I was able to upload the file to the directory via HTTP. Here's the situation. I have a JPG file on my server....
4
by: musica0886 | last post by:
How can I input in a combo box and the data I input must be save in the database.
3
by: Abuizhery | last post by:
Dear All, I am New in the group I appreciate your help to find any VB6 code which i can print a barcode from Sql Server Database ?
1
by: tiksya | last post by:
Were having a project "time-in System", the concept is, instead of manual input of time-in details in the form, we will be using the bar code, from our ID, the barcode scanner will automatically...
7
by: 123scope | last post by:
hey readers, can you please tell me how to write a c program which looks something like this. ./task.c part 1Enter barcode (input): 9300605048577 part 2 prints:-...
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: 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...
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
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: 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
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...

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.