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

Prevent user keying by keyboard and can only input by barcode scanner using javascrip

3
I intend to use barcode for input and prevent user to modify the barcode they scan, user are not allow to input the barcode number by keyboard.



Please advise how to do this.

Thanks.
Bikshu.
Aug 25 '14 #1
5 2338
Dormilich
8,658 Expert Mod 8TB
don’t provide a writable input field.
Aug 25 '14 #2
Bikshu
3
Hi Dormilich,

Thanks for reply.

I made the text box as readonly but it is not even accepting

barcode from scanner also.

Regards,
Bikshu.
Aug 26 '14 #3
Dormilich
8,658 Expert Mod 8TB
how do you get the scanner talking to your app? barcode reading is not something built into JS.
Aug 26 '14 #4
Bikshu
3
Attaching scanner cable to usb port of computer and scanning the barcode,

it is populating in textbox which have focus.


Regards,
Biksu.
Aug 26 '14 #5
Dormilich
8,658 Expert Mod 8TB
then it’s something your OS/browser provides. and from the description it won’t work then on read-only fields since the scanner effectively works like a user typing in the number himself.
Aug 26 '14 #6

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

Similar topics

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...
4
by: teddysnips | last post by:
I posted yesterday about a project I'm involved in to build a login application using a barcode scanner. I've solved most of the problems, but one remains. The client want to disable keyboard...
1
by: Louis Cypher | last post by:
I'm working on an application (OEM) using c# that uses input from a keyboard and a USB Barcode Scanner. I need to be able to identify keystrokes from the barcode scanner and remove them from the...
5
by: rsaikamesh | last post by:
hi, Can anyone tell me,how to read data from a barcode reader using C++ on linux?. I have connected my barcode scanner in com1(dev/ttys0) and I am using minicom for communication.If any1 has any...
1
by: paridaG | last post by:
hi, Please tell me,how to read data from a barcode reader using C++. My OS is (ubuntu)Linux?. I have connected my barcode scanner in com1(dev/ttyS0) and I am using minicom for communication.I am...
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...
2
by: BDthatsme | last post by:
I can't get any of the various examples of keyboard input to work using command line PHP. I have Windows XP Pro SP 2 and PHP 5.1.6 (cli) (built: Aug 23 2006 16:35:53). I can't find any info...
2
by: tomwilliams | last post by:
Hi I have created a website which has a number of buttons on it which allow users to add items to there basket, they then click on an AJAX watermarked textbox to set focus before using a keyboard...
5
by: alvintiow | last post by:
Hi, I intend to use barcode for input and prevent user to modify the barcode they scan, user are not allow to input the barcode number by keyboard. Please advise how to do this. Thanks.
0
by: MAHAVIR BANSAL | last post by:
How to Prevent user keying by keyboard and can only input by barcode scanner
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.