2 Replies Latest reply on May 23, 2012 5:19 AM by Darryn Campbell

    How to scan multiple times without page load?

    Otto Palminkoski

      Hi,

       

      I'm using the following .js to scan the barcode.

       

      scanner.enable();

      scanner.start();

      scanner.setEMML("scanTimeout:0;decodeEvent:url('JavaScript:doScan(%json)')");

       

      After the scan, I use JQuery to inject the result  to a div.

       

      How do I re-enable the scanner for a next barcode scan without a page load? I've tried:

       

      scanner.stop();

      scanner.disable();

      scanner.enable();

      scanner.start();

      scanner.setEMML("scanTimeout:0;decodeEvent:url('JavaScript:doScan(%json)')");

       

      Device: MK4000

      RhoElements version 1.0.2.3

       

      Thanks,

      - Otto