Visualize: render report and input controls

Test plugins

by tsareg

HTML

<script src="http://code.jquery.com/jquery-2.1.0.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script type='text/javascript' src="http://localhost:8080/jasperserver-pro/client/visualize.js"></script>

JavaScript

var bi = jasper("http://localhost:8080/jasperserver-pro");

bi(["report/model/NewReportModel"], function(ReportModel) {
    var model = new ReportModel({
        reportURI: "/public/Samples/Reports/AllAccounts"
    }, {
        contextPath: "http://localhost:8080/jasperserver-pro"
    });
    
    model.execute();
});