We are submitting data and then showing the result in a a alert box, what we want to do is send the user to a another page(response.php?r=result) instead of showing the alert.
The code we are using is below
function (result) {
setTimeout(function() {
alert("We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled);
}, 0);
},