I am developing a web application that needs to scan barcode to input value in textbox of some forms. Because the web application will be accessed from tablet and smartphones, I want to make use of device camera for reading barcode. And because it is not just one page that need to scan barcode, i want to seperate the scanning page. To summarize it, here is what i want to do;
1. From the main page, which is having a textbox that needs to be input from barcode, i click button to open the barcode-reader page.
2. The barcode reader page is opening in a new window or tab, and access device camera to read the barcode.
3. After reading the barcode, it will send the result to the main page textbox and close itself.
Here is the workaround i did. I am using Quagga.js for reding the barcode.
1. From the main page, which is having a textbox that needs to be input from barcode, i click button to open the barcode-reader page.
2. The barcode reader page is opening in a new window or tab, and access device camera to read the barcode.
3. After reading the barcode, it will send the result to the main page textbox and close itself.
Here is the workaround i did. I am using Quagga.js for reding the barcode.


