10xSebastian / barcode-scanner.js

Javascript library to handle and identify data (keystrokes) entered by a barcode scanner.
GNU General Public License v2.0
17 stars 7 forks source link

Disconnect/Offline storage #13

Closed 10xSebastian closed 8 years ago

10xSebastian commented 8 years ago

Asked by @unitedbummersconference here: https://github.com/pape-io/barcode-scanner.js/issues/3#issuecomment-161124622

Hi, for me on disconnects

 <form>
 <input data-barcode-scanner-target type='text'   class="pape-save-offline-barcode"></input>
  </form>
        $('form').on('submit', function(e){
        e.preventDefault();
        SaveToOffline();
        SeverBatchUpload();
    });

totally bombs out on me,would be supeer sweet, if this was an option

10xSebastian commented 8 years ago

As I want this library to focus on the detection, it's unlikely that I will store them locally in case of bad connection. Thats something your app should take care of, and obviously from your source code, you already solved that problem, don't you?

10xSebastian commented 8 years ago

duplicate: https://github.com/pape-io/barcode-scanner.js/issues/4