mmalinowski42 / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

ReloadChildren with callback doesn't work. #436

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am adding a node to the tree.
2. As all the nodes are LazyNodes, I am calling to an ajax request to display 
the new node.
3. When I am reloading the node (reloadChildren) , I would like to use the 
callback function, but it doesn't fire it...

4. In the example below, I would like to display a console log of the node, but 
I don't get anything.

5. The application goes to the success (checked with console log to see 
result). 

$.ajax( {
        type: "POST",
        url: application.applicationBaseUrl + url + "/relationships/Subnets", 
        contentType: "application/json",
        dataType: "json",
        success: function( response ) {             
                console.log (response);                             

        activeNode.reloadChildren(function(this, isOk){
           console.log("Node " + node + " could not be reloaded.");
            });
}

What am I doing wrong?

Original issue reported on code.google.com by izik.g...@gmail.com on 10 Jun 2013 at 8:53

GoogleCodeExporter commented 9 years ago
As of 2014 Dynatree is feature frozen.
Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that 
the problem was resolved / the requested featuer is already implemented.
Please open a new issue there otherwise:

https://github.com/mar10/fancytree

Original comment by moo...@wwwendt.de on 1 May 2014 at 4:44

GoogleCodeExporter commented 9 years ago
Cleanup Scrumboard

Original comment by moo...@wwwendt.de on 2 May 2014 at 7:47