Re:Pure browser qrcode generation as simple as $('#contain')...
by jerome_etienne on Thursday April 07, 2011 @09:02AM
(#2419277)
qr code is about easily passing data to your smart phone.
The most common application is give url to your phone. android 2.2 got a feature to push links from chrome to android phone.
with qrcode, you can do it from any browser to any smartphone.
One could write an plugin for that... one js including all what is needed. display a small icon on the page. when the user click on the icon, a large qrcode open, and the user can scan it and go on on its phone.
Re:Pure browser qrcode generation as simple as $('#contain')...
by InclinedPlane on Thursday April 07, 2011 @09:45AM
(#2419404)
A perfect example: printed tickets (for movies, live music, airplanes, etc.) Instead of having to rely on a service to generate a barcode (pretty common) you could generate QR-codes right in the browser, which makes it that much easier to switch over to a QR based system.
Re:Pure browser qrcode generation as simple as $('#contain')...
by dustingetz on Thursday April 07, 2011 @12:15PM
(#2420023)
its a trade-off. the point of javascript is you don't have to download an image. i've heard of people inlining base-64 encoded images to avoid an extra request. is 4k javascript worth it to avoid a 2k png download hosted somewhere else? maybe.
Re:Pure browser qrcode generation as simple as $('#contain')...
by danfitch on Thursday April 07, 2011 @10:10AM
(#2419499)
Looks like it uses canvas to draw the qr. Using something like http://raphaeljs.com/ would have made it even better for backwards compatibility. Awesome job though!
Re:Pure browser qrcode generation as simple as $('#contain')...
by runaway on Friday April 08, 2011 @07:31PM
(#2425996)
It would be more convenient if it automatically wrote the canvas out to a Base64 encoded png, imo. Makes for easy saving because I can then drag it to the desktop.
Re:Pure browser qrcode generation as simple as $('#contain')...
by robotron on Thursday April 07, 2011 @09:01AM
(#2419274)
I touched on this in another comment and zefhous is pretty much on the money. Where I'm at we have a web-based interface for our warehouse, inventory and CSR systems. QR codes are all over the place and with our web UI's we use Charts for QR generation. This causes a bottle-neck when things are moving really fast on the floor. I haven't looked at this yet but it sounds like something we need.
Re:Pure browser qrcode generation as simple as $('#contain')...
by yonran on Thursday April 07, 2011 @11:20AM
(#2419794)
I had installed one of the numerous QR Code extensions for Chrome (press the button and it generates a QR code of the URL to continue reading on the phone). Unfortunately, I always wanted to send the URL to my phone _after_ losing wifi contact, so the image would fail to load. I was so annoyed that I downloaded the ZXing source and learned GWT so I could compile the QREncoder to Javascript for myself. This looks like a neater and more lightweight solution.
Re:Pure browser qrcode generation as simple as $('#contain')...
by mariani on Thursday April 07, 2011 @08:00PM
(#2421774)
the technologies have overlap in many use cases but are complementary, QR Codes need to be visible and NFC (as the "Near" implies) requires a receiver to be near; you also need to program an RFID chip to do NFC, for QR Codes all you need is a printer or a screen, again very different use cases from the publisher standpoint as well; I guess Google's choice has more to do with what they want Google places to turn in to that with a choice of technology by itself
How well does it work (not in terms of recognition, but traffic generation, etc)?
I am looking for a use, but always come up with easier solutions that do not involved barcodes and image recognition on smartphones.
The most common application is give url to your phone. android 2.2 got a feature to push links from chrome to android phone.
with qrcode, you can do it from any browser to any smartphone.
One could write an plugin for that... one js including all what is needed. display a small icon on the page. when the user click on the icon, a large qrcode open, and the user can scan it and go on on its phone.
just suggesting
another way to get a qr code in just one line: https://chart.googleapis.com/chart?chs=150x150&cht=qr...
(Discalimer: from my website)
slap me for being so 90s but would it also be possible to have it degrade into a small <table> when canvas is not supported?
http://www.d-project.com/qrcode/index.html
I forget (if I ever knew) whether this has any connection with the originators of QR code:
http://en.wikipedia.org/wiki/Denso
It creates a <canvas> element. Sweet.
Is there a benefit to generating a qrcode on the client side?
Still - it's great that this plugin exists.
[EDIT] I was mistaken, see andrewjshults's reply.
but chart.apis.google.com (which Google formerly used) does not: https://chart.apis.google.com/chart?chs=150x150&cht=qr&#...
Turns out I was looking at some outdated docs. Thanks!