1. #1
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default QRCode App

    QRCode App


    Stemming from Vinylfox's (here) 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
    Attached Images
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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!
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Hehe...have some free time today I guess?

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by VinylFox View Post
    Hehe...have some free time today I guess?
    Yeah... it's not valid tho...

    Edit... I fixed it and it all works!
    Last edited by mitchellsimoens; 20 Jan 2011 at 1:58 PM. Reason: Works now!
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Mar 2008
    Posts
    65
    Vote Rating
    6
    rtweed is on a distinguished road

      0  

    Default


    Awesome! Many, many thanks for this Mitchell. This is going to allow all kinds of stuff to be possible now!!

  6. #6
    Sencha User
    Join Date
    Mar 2008
    Posts
    65
    Vote Rating
    6
    rtweed is on a distinguished road

      0  

    Default


    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 :-)

  7. #7
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Really great extension guys
    Thanks for sharing.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  8. #8
    Ext User
    Join Date
    Jan 2011
    Posts
    2
    Vote Rating
    0
    zachgonzales is on a distinguished road

      0  

    Default


    Wow! seriously awesome, a big thank you.

Similar Threads

  1. Ext.ux.touch.QRCode
    By VinylFox in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 5
    Last Post: 10 Jun 2014, 1:49 PM
  2. converting sencha touch app to ipad app
    By fgeorge in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 4 Oct 2011, 1:09 PM
  3. Turning Sencha Touch-based app into a true native iPhone app?
    By inapp in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 21 Jul 2010, 5:59 PM
  4. The easiest way to convert an j2ee app to an AIR app
    By ngontro86 in forum Ext.air for Adobe AIR
    Replies: 0
    Last Post: 28 Mar 2009, 3:40 AM
  5. Ext.app.App & Ext.app.Module Docs
    By jscharbe in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 28 Feb 2009, 6:42 AM

Thread Participants: 4