Hi,

I am trying to visualize a hierarchy and need to get children dynamically
in javascript function just like the following:

$.getJSON(addthese.json, function(addTheseJSON) {
    var newnodes = tree.nodes(addTheseJSON.children).reverse();
    d.children = newnodes[0];
    update(d);});

(http://stackoverflow.com/a/11590093/4124416)

But rather than $.getJSON, I need to make query with scala and get the JSON
back.

I could not find a nice way to realize this?
What should be the best way, how can I call a scala function within a
javascript function to retrieve data in each call?

Thanks and Regards,
Hasan

Reply via email to