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

2008-06-11 Thread Max Williams (Brighton)
uery(document).bind('treeviewLoaded', function() { jQuery("#loading-text").hide(); }); It's not ideal as it's called every time a branch loads whereas it really only needs to be called the first time. And it feels a bit dirty. I'd still like to kn

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

2008-06-11 Thread Max Williams (Brighton)
rst 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 Williams (Brighton)" > > <[EMAIL PROTECTED]> wrote: &

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

2008-06-10 Thread Max Williams (Brighton)
I'm using the async version of the treeview plugin to deal with a rather large tree. When the user first loads it there's nothing there, and quite a delay before the main set of branches loads, and i'd like to have some 'loading...' text there. How can i get the treeview to signal when it's fini

[jQuery] Re: [treeview] - async version - how do i call some js AFTER the tree has loaded some json for the first time?

2008-05-15 Thread Max Williams (Brighton)
element. > > More on the target property here:http://docs.jquery.com/Types/Event#target > > Jörn > > On Thu, May 15, 2008 at 3:31 PM, Max Williams (Brighton) > > <[EMAIL PROTECTED]> wrote: > > > I'm using the async version of the treeview plugin, which re

[jQuery] [treeview] Does anyone know of a persistence mechanism for the asynchronous version of the treeview plugin?

2008-05-15 Thread Max Williams (Brighton)
I'm trying to write my own cookie-based persistence method for the asynch version of the Treeview plugin, and am running into some difficulties. Has anyone else done this please, or know of an existing solution? thanks max

[jQuery] [treeview] - async version - how do i call some js AFTER the tree has loaded some json for the first time?

2008-05-15 Thread Max Williams (Brighton)
I'm using the async version of the treeview plugin, which refreshes the tree with an ajax call that returns some json. This is working fine. However, the cookie-based persistence doesn't work with the async version and i'm trying to write my own. In order to do this, i'm using jQuery to monitor

[jQuery] Re: requesting and sending JSON in a ruby on rails app

2008-05-07 Thread Max Williams (Brighton)
JavaScript at > all; you are simply debugging yourRailsapp. > > Once you know you have good JSON data, you can test question #2 with a > simple test case that just downloads the JSON data with jQuery and displays > it (even with just a console.log call). > > Finally, with all th

[jQuery] requesting and sending JSON in a ruby on rails app

2008-05-07 Thread Max Williams (Brighton)
Hi - first of all this is a plugin-specific question (about treeview) - i sent it to the plugin discussion page but it seems pretty dead (no posts for over a year), so i'm sending it here as well. If anyone could help me out that would be fantastic. I've been using treeview and have no problems