kazuhikoarase / qrcode-generator

QR Code Generator implementation in JavaScript, Java and more.
https://kazuhikoarase.github.io/qrcode-generator/js/demo/
MIT License
2.12k stars 680 forks source link

Can't rendering at IE8 #4

Closed workwyz closed 10 years ago

workwyz commented 10 years ago
mljia qrcode index
workwyz commented 10 years ago
$(document).ready(function(){
    'use strict';
    var $ = jQuery;
    var options = {
            render: "image",
            minVersion: 6,
            radius: 0.5,
            quiet: 1,
            mode: 4,
            mSize: 0.15,
            mPosX: 0.5,
            mPosY: 0.5,

            //fill: "#800080",
            fill: "#000000",
            background: "#ffffff",

            ecLevel: "M",
            size: 300,
            text: 'http://o2o.mljia.cn/100130',
            image: $("#img-buffer")[0]
            //label: '',
            //fontname: '',
            //fontcolor: '',
            //image: $("#img-buffer")[0]
        };
    $("#container").empty().qrcode(options);
});
workwyz commented 10 years ago

BUT IE10 AND firefox to test is ok. ????

kazuhikoarase commented 10 years ago

I have never coded jquery version of qrcode generator. Where do you get it? Although I see there are some forks that use canvas to render are do not work on old IE.

I tested my code below on IE8, 9, 10, firefox, chrome and so on. It uses embed image source instead of canvas.

https://kazuhikoarase.github.io/qrcode-generator/

thank you.