I'm currently looking for a js library that can encode text in qr codes. The only one I can find so far seems broken, although other people claim to use it. The sample page does not work. Playing a bit with this, I managed to generate codes, but they are not decoded by the phone software.
Is there any other library for js? Has anyone managed to get it to work?
I am not interested in a solution that extracts code from an online service (kaywa, google, etc.).
Update:
Well guys, you're right, this library works. My problem was that I tried to enable it on the HTML5 Boilerplate page, and document.write does not seem to work in this. In any case, I modified the sample code to make the browser picture in the canvas not a table, and I got the order of the fillRect function back. The following is the corrected function call.
context.fillRect(c * UNIT_SIZE, r * UNIT_SIZE, UNIT_SIZE, UNIT_SIZE);
Since I canβt transfer my image anymore :), now qr decodes perfectly. Thanks for the support.
javascript qr-code
Alex Ciminian Dec 27 '10 at 23:34 2010-12-27 23:34
source share