<script language="javascript" type="text/javascript" src="jit.js"></script>
<!-- Example File -->
+<script language="javascript" type="text/javascript" src="tmdata.js"></script>
<script language="javascript" type="text/javascript" src="tm.js"></script>
</head>
//call for the requested subtree. When completed, the onComplete
//callback method should be called.
request: function(nodeId, level, onComplete){
- var tree = eval('(' + json + ')');
+ //var tree = eval('(' + json + ')');
+ var tree = memnodes[0];
var subtree = $jit.json.getSubtree(tree, nodeId);
- $jit.json.prune(subtree, 1);
+ $jit.json.prune(subtree, 2);
onComplete.onComplete(nodeId, subtree);
},
//Add the name of the node in the corresponding label
}
});
- var pjson = eval('(' + json + ')');
- $jit.json.prune(pjson, 1);
+ //var pjson = eval('(' + json + ')');
+ var pjson = memnodes[0];
+ $jit.json.prune(pjson, 2);
tm.loadJSON(pjson);
tm.refresh();