dhtmlxtree

I’m using the refreshItem method, though I get weird errors…



Here is the xml

































I remove two items and end up with the following

















When I tried to do a refreshItem with id=‘1839_598_0_14’ , I receive the following error in my firefox error console



str.indexOf is not a function





I tried using the debug dhtmlxcommon.js that I saw mentioned in another post dhtmlx.com/docs/products/kb/inde … tmlxcommon



Is there anything else I can do ?





The only way, how such problem may occur - you have not provide the url from each item can be refreshed.
It can be done as
    tree.setXMLAutoLoading(url);

If url not set, the tree doesn’t know from which source it must refresh item and crush with mentioned error message.