soft4u Posted March 22, 2023 Share Posted March 22, 2023 My Version is 1.90.0 build 1555 In property HTML of Unithmlframe I write: Quote <div id="qr-reader" style="width:500px"></div> <div id="qr-reader-results" style="width:100px" ></div> <script src="html5-qrcode.min.js"></script> <script> function docReady(fn) { // see if DOM is already available if (document.readyState === "complete" || document.readyState === "interactive") { // call on next available tick setTimeout(fn, 1); } else { document.addEventListener("DOMContentLoaded", fn); } } docReady(function () { var resultContainer = document.getElementById('qr-reader-results'); function onScanSuccess(decodedText, decodedResult) { alert(decodedText); } var html5QrcodeScanner = new Html5QrcodeScanner("qr-reader", { fps: 10, qrbox: 250 }); html5QrcodeScanner.render(onScanSuccess); }); </script> how I can read the 'decodedText' value from unigui Mainform ? Thank you verry much ! Quote Link to comment Share on other sites More sharing options...
JarekZ Posted March 22, 2023 Share Posted March 22, 2023 ajaxRequest Quote Link to comment Share on other sites More sharing options...
soft4u Posted March 22, 2023 Author Share Posted March 22, 2023 I tried many ways ajaxRequest , but it doesn't work :-( Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 23, 2023 Share Posted March 23, 2023 On 3/22/2023 at 9:57 AM, soft4u said: My Version is 1.90.0 build 1555 Hello, If you are not using the trial version, please adjust your forum email address first: Quote Link to comment Share on other sites More sharing options...
JarekZ Posted March 23, 2023 Share Posted March 23, 2023 it means you're trying wrong. ajaxrequest works. you are probably setting the "recipient" of the message wrong. Post a piece of code where ajaxrequest doesn't work for you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.