This plugin can Read a QrCode from an existing image or by taking a picture..
This QR Code scanner lets you decode QrCode loaded from the Photo Library or by taking a picture with your mobile device. It supports the following formats: QR Code, Data Matrix , Aztec, PDF 417, MaxiCode, RSS-14 and RSS-Expanded
This plugin doesn’t read barcode (code39) ,another plugin is under development for that purpose.
In order to use this plugin, you must install it and activate it from the project parameters (Read the Plugin Installation documentation for more details)
You can download a Working example template here:
This components does not implement any setting or parameter, once it is enabled for a project, just drop it from the widget list to your project page.
The Plugin will be in charge of displaying the generated QRCode, so you should at least set a size of 128x128px if you want to display a readable QRCode.
Now we will learn how to call the QRCode generator Plugin with a text we want to convert to QRCode.
It exposes a single function named drawQR.
In order to convert a text to QRCode, you just have to call this function, for example:
Elt is a reference to a js element ( for instance: var elt=document.getElementById(“myID"); ), and v is the text to convert.
The sample template shows how to pass dynamic text using a form, just check the custom code in this sample to understand how it's done.