visualizejs
i'm try to emped a report to my web page but it doesn't work
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://localhost:8080/jasperserver-pro/client/
visualize.js?userLocale=fr&logLevel=debug">
visualize({
server:"http://localhost:8080",
auth: {
name :"superuser",
password :"superuser"
}
}).done(function(v){
v("#container1").report({
resource: "/public/Analysis_of_Product_Sales_by_City_Report"});
}).fail(function(err){
alert(err.message);
});
</script>
<title>TODO supply a title</title>
</head>
<body>
<div id="container1"> </div>
</body>
</html>
on tomcat log is
192.168.1.109 - - [14/Dec/2015:11:23:07 +0200] "GET /jasperserver-pro/client/%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20visualize.js?userLocale=fr&logLevel=debug HTTP/1.1" 404 58332
or even if i try to run this script
<html>
<head>
<script type="text/javascript" src="http://192.168.1.109:8080/jasperserver-pro/client/
visualize.js?userLocale=fr&logLevel=debug">
alert('a');
</script>
<title>TODO supply a title</title>
</head>
<body>
<div id="container"> </div>
</body>
</html>
it doesn't work