Visualize: render report and input controls
Test plugins
by Gene Arnold
HTML
<script src="http://code.jquery.com/jquery-2.1.0.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script src="http://localhost:8080/jasperserver-pro/client/visualize.js"></script>
<button id="btnGrab"> Grab </button>
<div id="container"></div>
JavaScript
visualize({
auth: {
name: "superuser",
password: "superuser"
}
}, function (v) {
v("#container").report({
resource: "/public/Samples/Reports/01._Geographic_Results_by_Segment_Report"
});
var r = v.report;
});
$(function() {
$('#btnGrab').click(function() {
grabAndChange();
});
});
function grabAndChange(){
var report = $("#container");
}