Jump to content
Changes to the Jaspersoft community edition download ×

Where can I find an example of an html page that loads a report outside jsfiddle?


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...