title: Using zxing Barcode Scanner within a web page
body: <p>Is there a working example how you can use the zxing Barcode Scanner from a web page?</p>
  
  <p>Referring to this documentation:
  <a href="https://github.com/zxing/zxing/wiki/Scanning-From-Web-Pages">https://github.com/zxing/zxing/wiki/Scanning-From-Web-Pages</a></p>
  
  <p>shouldn't the following test code work?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function Test1()
  {
   $.ajax(
   {
          url: "zxing://scan/?ret=http%3A%2F%2Ffoo.com%2Fproducts%2F%7BCODE%7D%2Fdescription&amp;SCAN_FORMATS=UPC_A,EAN_13",
          success:function()
    {
              alert("success");
          },
          error:function()
    {
              alert("error");
          }
      });
  }
   
  function Test2()
  {
   $.ajax(
   {
          url: "http://zxing.appspot.com/scan?ret=http%3A%2F%2Ffoo.com%2Fproducts%2F%7BCODE%7D%2Fdescription&amp;SCAN_FORMATS=UPC_A,EAN_13",
          success:function()
    {
              alert("success");
          },
          error:function()
    {
              alert("error");
          }
      });
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;button id="button1" onClick="Test1();"&gt;Test 1&lt;/button&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;button id="button2" onClick="Test2();"&gt;Test 2&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I keep getting "error" on my Android 4.4.2 Samsung Galaxy TabPro and Samsung Galaxy S4.
  I've tried the stock browser, Chrome, Firefox and Dolphin Browser.</p>
  
  <p>Even <a href="http://zxing.appspot.com/scan">http://zxing.appspot.com/scan</a> doesn't work as it always asks me to install the (already installed) app.</p>
  
  <p>Any help would be much appreciated.</p>