[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary "loading..." text)

2008-06-11 Thread rolfsf
Max, The animation, obviously, is just a an icon that, if I remember correctly, was set up as a css background image for li.placeholder. The script then adds the .placeholder class to unloaded branches, and removes the class when they load. That's from memory, so I could be wrong... rolf On Jun

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary "loading..." text)

2008-06-11 Thread Max Williams (Brighton)
I actually just solved this, not with some animation but with some text: i modified the jquery.treeview.async.js file to send a custom event after the "$.getJSON" block (line 44): jQuery(document).trigger('treeviewLoaded'); Then in my javascript code that calls the tree i add the text to the tr

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary "loading..." text)

2008-06-11 Thread Max Williams (Brighton)
Hi rolf yeah, that would do fine actually - i missed that. Do you know how that is generated? thanks max On Jun 10, 5:41 pm, rolfsf <[EMAIL PROTECTED]> wrote: > If you look at the async > demo:http://dev.jquery.com/view/trunk/plugins/treeview/demo/async.html > > in the first tree, click on it

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary "loading..." text)

2008-06-10 Thread rolfsf
If you look at the async demo: http://dev.jquery.com/view/trunk/plugins/treeview/demo/async.html in the first tree, click on item 3, and then on item 3.6 - you'll see a loading icon for a few seconds, then the branch will load. Is that what you're looking for? rolf On Jun 10, 9:10 am, "Max Will