Hi all together,
I am currently using the hypertree template and I am visualising data out of a Moodle Database. There I extract the values: id,name,parent,link.
The first three values are used to build up the tree. The value 'link' i want to use to get a link to a Video on the rigth side of the tree (onComplete:function() ).
I am using all these values in the file 'example1.js' by encrypting my json file.
function init(){
jQuery.get("Testerich.php", function(data){
//alert("HALLO");
var obj = JSON.parse(data);
//alert(obj);
drawTree(obj[0]);
}).fail(function( jqXHR, textStatus, errorThrown){alert("FAILED " + textStatus + " " + jqXHR.status + " " + errorThrown)});
}
Now my Problem is that I dont know how to get the link Display on the right side. I have to put it somehow into the data field to Access it by data.link but I dont know how I have to Change my jsonfile or my databasse to get the right Connections.
Does somebody can help me or had the same problem?
I would be appreciate
Armin