Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Integration with barcode scanner › Reply To: Integration with barcode scanner
September 24, 2024 at 11:11 am
#50203
Participant
Hi Ernest,
Sorry, but I can’t get it to work. Probably am I missing something? Here is the complete code:
var barDataEl = document.getElementById('status');
for (var i = 0; i < barcodeResult.length; ++i) {
var sBarcode = DSScanner.bin2String(barcodeResult.at(i));
barDataEl.innerHTML = barcodeResult.at(i).type + ': ' + sBarcode;
$("input.orig").val(sBarcode).focus();
ASP.api(1, "searchFor", sBarcode);
}