title: scan barcode in a web application
body: <p>I'm building a web application (C#) for a customer. </p>
  
  <p>Now I'm trying to add a page for mobile. I want that the customer will be able to scan a barcode (1D barcode or 2D barcode) and the code will be written in a text field (<code>&lt;input&gt;</code>) on the screen for further operations. It must work on android or iphone, and better - on both.</p>
  
  <ol>
  <li><p>I tried to use JS codes which I can take a picture with the camera in the mobile device and the script reads the barcode in the picture - but I didn't find something good enough. 
  <a href="http://manuels.github.io/unix-toolbox.js-exact-image/demo/" rel="nofollow noreferrer">this one</a>  didn't work with large images from the camera, and <a href="http://badassjs.com/post/654334959/barcode-scanning-in-javascript" rel="nofollow noreferrer">this one</a>  couldn't read some of my barcodes and also couldn't read large images. </p></li>
  <li><p>I tried to find a way that the customer will click on a button to open a barcode-scanner-application on the device (I have an android mobile device) - and the barcode will be written on an input on the screen, but I can't find if it's possible and how to do it. </p></li>
  <li><p>I don't want to use phonegap - I need it as a web application, not a native app.</p></li>
  </ol>