Jump to content
JasperReports Library 7.0 is now available ×

Visualize.js with IE7


ibedini
Go to solution Solved by hozawa,

Recommended Posts

Hello,

I  tried this js code (founded to http://jsfiddle.net/gh/get/library/pure/ernestoongaro/vis.js-intermediate-live/tree/master/export-report):

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?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...