Generating QRCode with Google Charts API
It seems Google Charts API supported QR Code generation for quite a while, which I didn’t know up until yesterday…oh boy. Anyway, since its so easy to generate QR Code with Google API, tested a quick sample.
I’m not gonna go into detail of parameters. Just want to show how quickly it generates the QR code. Below code will generate QR code containing location of where script is written.
1 2 3 4 | <script type="text/javascript"> var url = "http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=" + encodeURIComponent(window.location); document.write('<img src="' + url + '"/>'); </script> |
It maybe a fun experiment generating tons of QR Code to just visualize all sorts of information. Will give a try when a have more time to work on this.
Check out the full generator demo here.
