visualize.js with jsfiddle doesn't work

0
<!-- Provide URL to Visualize.js -->
<script type="text/javascript" src="https://serverAddress/jasperserver-pro/client/visualize.js"></script>
<!-- Provide container to render your visualization -->
<div id="container"></div>

and this is the js:

visualize({
    server: "https://serverAddress/",
    auth: {
        name : "jasperadmin",
        password: "mypassword",
        organization:"organization_1"
    }
}).done(function(v){
    var report 
        = v.report({ resource: "/KSZF/NYITOTT_KOTESALLOMANY/NyitottKotesallomany", (I watched this for web ui report mouse right click properties, so the kszf is in the root (http://snag.gy/BHQG1.jpg))
                    container: "#container"
    });
}).fail(function(err){ alert(err.message); });

My report run well in web ui, and i see visualize.js get request worked in the browser(chrome), but I have different errors:

Uncaught TypeError: Cannot read property 'done' of undefined fiddle.jshell.net/:29
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
https://serverAddress/xdm.html?logEnabled=true&logLevel=error&xdm_e=http...

I try many things, different settings, but cant work.

any idea?
thanks

vbence's picture
49
Joined: Jan 21 2015 - 12:53am
Last seen: 4 years 8 months ago

The server log doesnt contain these errors, and I use https.

This is the response page for the given error in the network area error (i showed above):

http://snag.gy/A9Ea0.jpg

Maaybe it's a network issue?

How can i enable the connected logging?

vbence - 4 years 9 months ago

1 Answer:

0

Looks like a network issue.. You can try it locally.

Anyway you can put visualize.js in debug mode by adding "&logLevel=debug" at the end of the script call like:

 
marianol's picture
4828
Joined: Sep 13 2011 - 8:04am
Last seen: 1 year 2 months ago
Feedback
randomness