jeromeetienne / jquery-qrcode

qrcode generation standalone (doesn't depend on external services)
http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
MIT License
4.85k stars 2.5k forks source link

Missing queryString #114

Closed mqliutie closed 6 years ago

mqliutie commented 6 years ago

$('#qrCode').qrcode({ width: 80, height: 80, text: "http://xxx.xx.com?t=12312312" });

In some browser the t=12312312 will be gone.

Anyone can help?

incitedigital commented 6 years ago

Hello, I created variables for each of my parameters and then concatenated them together. It works for me. Here is an example.

var customer = $('#customer').val(); var location = $('#location').val(); var site = $('#site').val(); var menuID= $("#menuID").val(); var emails = $('#emails').val();

$('#qrcode').qrcode({width: 256,height: 256,text: 'https://xxx.xxx.xxx/?customer='+customer+'&location='+location+'&menuID='+menuID+'&site='+site+'&emails='+emails});

mqliutie commented 6 years ago

Fortunately, the QR code needs to be cut off.