A demo that scans a barcode and performs a lookup/search operation (product or inventory lookup) using the Dynamsoft Barcode Reader (JavaScript edition).
scan-and-search.html— single‑file demo (scan UI + search/lookup flow).
- Scan Barcodes using your device camera
- Search by Text or Barcode input
- Displays mock product data as search results
- Responsive UI with modern styling
- Click the Scan button to launch the barcode scanner.
- Once a barcode is detected, its value is displayed along with placeholder product information.
- Alternatively, type a product name or barcode manually in the input field and click Search.
- Results are displayed in the Search Result text area.
Opening HTML files directly may not work as expected. Instead, run a local development server. Here’s a quick method using Visual Studio Code:
-
Install the Five Server extension from the VS Code Marketplace.
-
Right-click on
index.htmland select "Open with Five Server".
- No real backend is connected in this demo; results are mocked.
- You can integrate with a real product API by replacing the placeholder content in the searchResult.value.
- Intended as a prototype UX; secure and validate lookups before production use.
- See root
README.mdfor running instructions and licensing.