Jump to content
We've recently updated our Privacy Statement, available here ×

How to get visualize.js working in mvc web app

Recommended Posts

I have a piece of javascript that mimics the sample javascript, and it works fine in jsfiddle. It doesn't work in my sample mvc web app. Is there anything special I have to do in order to use visualize.js in the .net environment? Here is my sample code:

    ViewBag.Title = "About";
<!-- Provide the URL to visualize.js -->
<script src="http://localhost:8080/jasperserver-pro/client/visualize.js"></script>
<h3>Sample Jasper Report</h3>
<div id="container"></div>
        auth: {
            name: "superuser",
            password: "superuser",
            //organization: "organization_1"
    }, function (v) {
            resource: "/organizations/organization_1Total_Hours_Pie_Chart_Report",
            error: handleError
        function handleError(err) {


Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...