-3

I am trying to include a QR code in a Bill design that I am creating using qrious.js

ALL the examples on the internet use live text input to create the QR code, while I want a QR of the static text that I want. Please give some possible solutions.

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339

2 Answers2

0

Qrious readme file is very clear. You have to add your static text to value field.

var qr = new QRious({
  element: document.getElementById('qr'),
  value: 'Your static text'
});
Stefino76
  • 369
  • 4
  • 10
0

You need to insert the qrious.js script before using it and then access the static information in the call to QRious object.

<!DOCTYPE html>
<html>
  <body>
    <p>Static link is</p>
    <p id="theLink">https://youtube.com</p>
    <p>QR code</p>
    <canvas id="qr"></canvas>
  
    <script src="https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.js">    </script>
    <script>
      (function() {
        var qr = new QRious({
          element: document.getElementById('qr'),
          value: document.getElementById('theLink').innerText
        });
      })();
    </script>
  </body>
</html>
  • Thanks. Now that the design I got the design I want I am trying to create the .exe file using VB6, but I cant link qrious.js. How can I do that??? – Muhammed Farzin Farooque T K Oct 04 '22 at 11:22
  • You can view and follow along this video https://www.youtube.com/watch?v=i7IBueVkc8M&ab_channel=JoLadz on YouTube which shows use of ActiveX JLSQRCode.dll file to create QR Code in VB6. – Nizamuddin Shaikh Oct 04 '22 at 12:13