JSFiddle - React, Tailwind, and code Playground
by vysohanych
HTML
<div id="container"></div><script type='text/javascript' src="http://localhost:8080/jasperserver-pro/client/visualize.js"></script>
CSS
#container {
height: 800px;
}
JavaScript
function handleError(e) {
alert(e);
console.log(e);
}
visualize({
auth: {
name: "superuser",
password: "superuser"
}
}, function (v) {
var dashboard = v.report({
resource: "/public/Samples/Reports/04._Product_Results_by_Store_Type_Report",
container: "#container",
error: handleError
});
},handleError);