creaven/miftree

node.load does not seem to work from URL if already loaded

icydee opened this issue · 3 comments

Using the loadOptions url: to load data from a script.

Open the node so that the load takes place.

Now change the database to (for example) add another child to the open node.

Call node.load on the opened node.

Expected result: The new data returned from the URL should be displayed. (i.e. with the new child)

Actual result: The node is closed but when it is manually reopened it still contains the old data.

Sorry, after another 12hrs work, and several reads through the docs and another look at the examples, I found the reason!

you can use reload now (like this http://mifjs.net/tree/Demos/index.html#reloadChildren), may be this will be merged into load function in future releases.

and remember that ie often cache results and you can get the same data