login about faq

How would you get a barcode input and place the value in a web form?

asked May 28 '12 at 09:55

codix's gravatar image

codix
2395

1

I just realized that a barcode scanner works the same as a keyboard. So what is needed is to have the focus on a textfield then scan. The value will reflect on the textfield.

(May 29 '12 at 08:16) codix codix's gravatar image

I think the fundamental problem is that in our minds we've transformed the Web from being a 'document-centric' platform to a rich application platform—so we expect a Web page in a browser to be able to behave like a native application would, when in fact, the underlying model is still that of a static document, running in a sandbox (the browser).

Having said that—standard HTML + JS alone won't help you. Your best bet is to try either a Java applet or Flash/Flex, or if coding for iOS or Android then their specific APIs. Alternatively, see if you can use the onboard camera (on most laptops, tablets and phones) to take a picture, then 'scan' that picture. I know of several iOS apps that function this way.

link

answered May 29 '12 at 07:25

Alistair%20A.%20Israel's gravatar image

Alistair A. Israel
3.1k210

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63
×18
×16

Asked: May 28 '12 at 09:55

Seen: 769 times

Last updated: May 29 '12 at 08:16