View Full Version : QRCode App

20 Jan 2011, 12:26 PM
Stemming from Vinylfox's (here (http://www.sencha.com/forum/showthread.php?121868-Ext.ux.touch.QRCode)) idea, I decided to embark on my own with a much needed feature.


I wanted to have offline support and JavaScript can't really get source of a file, I needed to throw Google services out. I found a PHP library that does it so you have to run it on a server with PHP, no biggie tho. The PHP creates a PNG file containing a QRCode, then base64's the image and returns that string with some other parameters. Sencha Touch then takes that array and put's it in an offline Store.

Demo: http://www.simoens.org/Sencha-Projects/QRCode/
Git: https://github.com/mitchellsimoens/QRCode

20 Jan 2011, 1:09 PM
Updated code to use JavaScript to generate QR Code using Canvas. VinylFox found the JS code to do this so hats off to him but I beat him to it!

Git and online Demo has been updated!

20 Jan 2011, 1:17 PM
Hehe...have some free time today I guess? :)

20 Jan 2011, 1:23 PM
Hehe...have some free time today I guess? :)

Yeah... it's not valid tho...

Edit... I fixed it and it all works!

21 Jan 2011, 12:05 AM
Awesome! Many, many thanks for this Mitchell. This is going to allow all kinds of stuff to be possible now!!

21 Jan 2011, 12:12 AM
Just tried the demo, created a couple of QRCodes and read them perfectly with the iPhone RedLaser app. Just phenomenal work Mitchell! Very, very impressive :-)

21 Jan 2011, 3:28 AM
Really great extension guys ;)
Thanks for sharing.

21 Jan 2011, 8:00 AM
Wow! seriously awesome, a big thank you.