[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-04 Thread rolfsf
thanks jpmcc! I was pondering that at the end of the day Friday what if we just remove() the entire UL? Seems like an extra step, but if it works that's great news. rolf On May 4, 1:11 pm, jpmcc <[EMAIL PROTECTED]> wrote: > I've just been battling with the very same problem. I tried emptyi

[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-04 Thread jpmcc
I've just been battling with the very same problem. I tried emptying out the element too, but found the duplicated divs with the side effect that sub branches would not open even though valid data had been retrieved using the async extension (and the data was sitting in the tree but hidden). I d

[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-01 Thread ripple
That's pretty much how mine will work as well. Although I haven't had to add the ajax part. I just needed to create it to display to another team how it's supposed to work. With looking at an older message of yours, your getting the same results I was getting. That's when I removed all the

[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-01 Thread rolfsf
Our tree will potentially change within the time that someone is using it. In fact, the user will be creating and saving new nodes; Other users will be creating and saving new nodes. Both users need to be able to refresh the tree to see nodes added by themselves and others. The async tree starts

[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-01 Thread ripple
I didn't remove the contents within the elements(datadata). I only had to remove the html and (, etc) attributes/characteristics applied by treeview, cause on a rebuild it would reapply the attributes, resulting in it breaking. I had to bring the lists down to the simple html and then rebu

[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-01 Thread rolfsf
Thanks ripple. So are you saying you had to remove and clear the individual elements and attributes, rather than using empty() or remove() on the UL? Why wouldn't removing or emptying the contents of the UL do the same thing? I guess I'm confused as to what or where (why!) information about the

[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-01 Thread ripple
I had to handle this situation over a week ago. I just wrote a couple lines to remove all tree attributes from the generated source and then rebuilt the tree. $('.sample ul:eq(0)').removeClass('treeview'); $('.sample li').removeClass(); $('.sample ul div').remove();

[jQuery] Re: treeview - async - problems reinitializing tree

2008-05-01 Thread rolfsf
sorry, didn't realize how badly the formatting was! Let me try again. We ran into a problem when trying to set up a refresh button on an async treeview implementation. Our tree contents will be changing all the time. Basically, we need to know how to blow away the contents of the UL and then re-i