Dear all,
I am trying a dummy webpage where I want to display a JSON root plot.
If I open in the browser this link (adjusting my_local_ip): http://my_local_ip:8080/Canvases/c1/root.json
I do see the json object, so something is wrong in the following HTML code, any suggestions?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Reading object from the JSON file</title>
<script type="text/javascript" src="https://root.cern/js/latest/scripts/JSRootCore.min.js"></script>
<script type='text/javascript'>
// json file stored in same folder, absolute address can be used as well
JSROOT.NewHttpRequest("http://my_local_ip:8080/Canvases/c1/root.json", 'object', function(obj) {
JSROOT.draw("drawing", obj, "hist");
}).send();
</script>
</head>