15 Replies Latest reply on Jan 26, 2016 11:52 PM by p.braam@hotmail.nl

    Web application scanner not working on MC2180

    p.braam@hotmail.nl

      Hello there,

       

      In the last few weeks i have developed a web-app for the Motorola SB1 (Smartbadge).

      A few days ago we bought a new scanner the MC2180. The adverts said all applications (including web) should be compatible across all platforms.

       

      But when i try to use the MC2180 scanner in my web-app it dousn't work. I am using the following JS to enable and use the scanner (Working on the SB1).

       

      <META HTTP-Equiv="scanner" Content="enabled">

      <META HTTP-Equiv="scanner" Content="AutoEnter:Enabled">

      <META HTTP-Equiv="scanner" Content="Start">

      <META HTTP-Equiv="scanner" Content="DecodeEvent:url('javascript:decodeEvent(%s, %s, %s);')">

       

          function detected(a, b, c) {
      //console.log(a, b, c);
      }

       

       

      function decodeEvent(a, b, c) {
      document.getElementById('terms').value = a; // Vult de waarde uit de scanner in het texfield
      document.getElementById('searchform').submit(); // Post de gescande waarde
      scanner.stop();
      }

       

      Can anyone help me? I would really appreciate any help, on getting the MC2180 working with my web-app.

       

      Kind regards,

       

      Pelle Braam