jeromeetienne / jquery-qrcode

qrcode generation standalone (doesn't depend on external services)
http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
MIT License
4.85k stars 2.51k forks source link

Uncaught ReferenceError: QRErrorCorrectLevel is not defined #23

Open fotoflo opened 12 years ago

fotoflo commented 12 years ago

i've followed the directions as mentioned in the readme, but am getting this issue

jQuery.qrcode.js:15Uncaught ReferenceError: QRErrorCorrectLevel is not defined, on line 15

fotoflo commented 12 years ago

I think i've fixed that by changing line 15:

        correctLevel    : QRErrorCorrectLevel.H,

to correctLevel : "QRErrorCorrectLevel.H",

jwittkoski commented 12 years ago

@fotoflo The fix you listed does not set the QRErrorCorrectLevel as you expect (although it does get rid of the error).

It seems like you would only see this error if you use the src/jquery.qrcode.js file directly instead of the jquery.qrcode.min.js file (which contains both src/jquery.qrcode.js and src/qrcode.js).

See the Makefile for how they are combined.

j717273419 commented 10 years ago

Yeah!

Use jquery.qrcode.min.js,

It's worked!