Miguel.Rodriguez_1 Posted November 7, 2014 Share Posted November 7, 2014 I have tryed the examples in jsfiddle and it works. Now I want to create a page on my web site that shows the report without using jsfiddle. Is that possible?Thanks and regards,Miguel Link to comment Share on other sites More sharing options...
hozawa Posted November 8, 2014 Share Posted November 8, 2014 Here you go. You may need to fix up some js load links.<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Visualize.js Sample</title><script src="js/jquery.js"></script><script type="text/javascript" src="http://127.0.0.1:8080/jasperserver-pro/client/visualize.js"></script><script type="text/javascript">visualize({ auth: { name: "superuser", password: "superuser" }}, function (v) { v("#container").report({ resource: "/public/Samples/Reports/TopCompanies", error: handleError }); function handleError(err){ alert(err.message); }});</script></head><body> <div id="container"></div></body></html[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now