Previously, blogfreakz has featuring qrTip, a jQuery plugin that can display QR tooltips for links. This time I will review about jquery.qrcode, plugin for jQuery that allow us to easily add qrcode to webpages.
query.qrcode.js is jquery plugin for a pure browser qrcode generation. query.qrcode.js allow us to easily add qrcode to any webpages. It doesnt rely on external services which go on and off, or add latency while loading. It is based on a library which build qrcode in various language. jquery.qrcode.js wraps it to make it easy to include in your own code.
To implement query.qrcode is pretty simple, first we need to include it in our webpage with the usual script tag.
Then create a DOM element which gonna contains the generated qrcode image. Lets say a div
Then we add the qrcode in this container by
jquery(‘#qrcode’).qrcode("this plugin is great");
query.qrcode.js is available on github here under MIT license. If you hit bugs, fill issues on github. Feel free to fork, modify and have fun with it.
Requirements: jQuery Framework
License: MIT License