Visualize.js with IE7

Hello,

I  tried this js code (founded to http://jsfiddle.net/gh/get/library/pure/ernestoongaro/vis.js-intermediat...):

visualize({
    auth: {
        name: "joeuser",
        password: "joeuser",
        organization: "organization_1"
    }
}, function (v) {
    var reportExports = v.report.exportFormats;
    console.log(reportExports); //print export formats

    report = v.report({
        resource: "/public/Samples/Reports/AllAccounts",
        container: "#container",
        error: function (error) {
            console.log(error);
        }
    });


    window.reportExport = function reportExport() {
        report.export({
            outputFormat: "pdf"
        })
            .done(function (link) {
            window.open(link.href); // open new window to download report
        })
            .fail(function (err) {
            alert(err.message);
        });
    }


});
 

It's runs ok with IE9 but doesn't work with IE7. Error is near the word report of "report.export": identifier expected; How I can resolve it?

ibedini's picture
78
Joined: Nov 30 2015 - 3:53am
Last seen: 2 years 3 weeks ago

1 Answer:

IE7 isn't supported. Even IE8 is not fully supported and support is due to end soon if not already.

hozawa's picture
177381
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago
Feedback
randomness