Categories | Question details Back To List | ||
dhtmlxtree I'm using the refreshItem method, though I get weird errors... Here is the xml <tree id='0'> <item text='RootTag' id='1839_598_0_14'> <item text='z' id='2554_623_1_14'> <item text='zx' id='2555_624_2_14' /> </item> </item> </tree> I remove two items and end up with the following <tree id='0'> <item text='RootTag' id='1839_598_0_14' /> </tree> 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 http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=2545&ssr=yes&s=dhtmlxcommon Is there anything else I can do ? Answer posted by Support on May 08, 2008 03:30 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. |