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 zefhous on Thursday April 07, 2011 @08:52AM
(#2419257)
I can see it being used with wkhtmltopdf (uses webkit to generate PDFs) so invoice generation or something doesn't require an external request.
Re:Pure browser qrcode generation as simple as $('#contain')...
by lwhi on Thursday April 07, 2011 @09:00AM
(#2419271)
That looks like a nice project, thx.
Re:Pure browser qrcode generation as simple as $('#contain')...
by _pius on Thursday April 07, 2011 @08:46AM
(#2419234)
From the OP:
It doesn't rely on external services which go on and off, or add latency while loading.
Re:Pure browser qrcode generation as simple as $('#contain')...
by lwhi on Thursday April 07, 2011 @09:02AM
(#2419275)
That's true - but the charts API works without JS, and is inserted into the page as an image which could be seen as equally advantageous.
Still - it's great that this plugin exists.
Re:Pure browser qrcode generation as simple as $('#contain')...
by alunny on Thursday April 07, 2011 @10:54AM
(#2419670)
The Google charts API doesn't provide an SSL interface - if you use it on a page served over https, you'll get a mixed content warning.
[EDIT] I was mistaken, see andrewjshults's reply.
Re:Pure browser qrcode generation as simple as $('#contain')...
by andrewjshults on Thursday April 07, 2011 @11:41AM
(#2419882)
The google charts link at the top of the thread (http://news.ycombinator.com/item?id=2419367) https://chart.googleapis.com/chart?chs=150x150&cht=qr... is served via HTTPS. Their docs don't officially acknowledge supporting HTTPS but it looks like people have been doing it since 2007 (at least - http://groups.google.com/group/google-chart-api/browse_threa... )
Re:Pure browser qrcode generation as simple as $('#contain')...
by alunny on Thursday April 07, 2011 @11:52AM
(#2419922)
Interesting - looks like chart.googleapis.com works over HTTPS:
https://chart.googleapis.com/chart?chs=150x150&cht=qr...
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!
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.
Is there a benefit to generating a qrcode on the client side?