Categories | Question details Back To List | ||
second parameter of loadXML command tree.loadXML("some.url",function(){   ... second parameter of loadXML command tree.loadXML("some.url",function(){ //will be called after data loaded in grid }) I tried this second option u gave, Even then that function is called before tree is getting loaded. so it is not returning correct no. of children values. May be the load statement is asynchronous it ll be like that..Is there any other way to knw the no. of children after the tree is getting loaded??? Answer posted by Support on Apr 11, 2008 01:55 >>the load statement is asynchronous Yes, the xml loading is async, but the second parameter of load XML called only after XML data loaded. tree.loadXML("some.url",function(){ alert(tree.getAllSubItems(0).split(",").length); }) |