TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pure browser qrcode generation as simple as $('#contain').qrcode('foobar')

146 pointsby jerome_etienneabout 14 years ago
hoping to make qrcode easier to use

10 comments

chopsueyarabout 14 years ago
What specific examples do you guys use QR codes for on websites?<p>How well does it work (not in terms of recognition, but traffic generation, etc)?<p>I am looking for a use, but always come up with easier solutions that do not involved barcodes and image recognition on smartphones.
评论 #2419277 未加载
评论 #2419269 未加载
评论 #2419404 未加载
hazelnutabout 14 years ago
it's great<p>another way to get a qr code in just one line: <a href="https://chart.googleapis.com/chart?chs=150x150&#38;cht=qr&#38;chl=news.ybombinator.com" rel="nofollow">https://chart.googleapis.com/chart?chs=150x150&#38;cht=qr&#3...</a>
评论 #2420023 未加载
评论 #2425680 未加载
评论 #2419644 未加载
评论 #2420264 未加载
评论 #2419837 未加载
sylvinusabout 14 years ago
great idea!<p>slap me for being so 90s but would it also be possible to have it degrade into a small &#60;table&#62; when canvas is not supported?
danfitchabout 14 years ago
Looks like it uses canvas to draw the qr. Using something like <a href="http://raphaeljs.com/" rel="nofollow">http://raphaeljs.com/</a> would have made it even better for backwards compatibility. Awesome job though!
评论 #2419635 未加载
pasbesoinabout 14 years ago
Note that the qrcode.js part of this is<p><pre><code> // QRCode for JavaScript // // Copyright (c) 2009 Kazuhiko Arase // // URL: http://www.d-project.com/ </code></pre> Here's the related QR project(s). (Note the implementations in other languages.)<p><a href="http://www.d-project.com/qrcode/index.html" rel="nofollow">http://www.d-project.com/qrcode/index.html</a><p>I forget (if I ever knew) whether this has any connection with the originators of QR code:<p><a href="http://en.wikipedia.org/wiki/Denso" rel="nofollow">http://en.wikipedia.org/wiki/Denso</a>
vdmabout 14 years ago
View source: <a href="http://jeromeetienne.github.com/jquery-qrcode/examples/basic.html" rel="nofollow">http://jeromeetienne.github.com/jquery-qrcode/examples/basic...</a><p>It creates a &#60;canvas&#62; element. Sweet.
runawayabout 14 years ago
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.
lwhiabout 14 years ago
In the past I've used the google charts API to generate QR codes.<p>Is there a benefit to generating a qrcode on the client side?
评论 #2419274 未加载
评论 #2419257 未加载
评论 #2419234 未加载
评论 #2419670 未加载
评论 #2419794 未加载
benologistabout 14 years ago
Isn't google ditching QR codes for NFC?
评论 #2421774 未加载
josh33about 14 years ago
Could this be used from an iOS application or is there a better self-contained library for iOS?