Page 1 of 1

Expandable Trees [for Anime Views]

Posted: Tue Apr 03, 2007 9:37 pm
by Isochroma
First off, my thanks for the continued reliability and funtionality of this great service!

I browse lots of sites, some like Microsoft's Technet, which have these excellent expandable trees implemented in various ways. The idea would be to use them on anime main pages and all other pages that use expandable items. [EditRar: this bit was added, right?]

Here is one good example:

http://www.mattkruse.com/javascript/mktree/

This Google search finds lots of code samples:

http://www.google.com/search?q=html+cod ... le+tree%22

The great thing about the expandable trees, is that when a user clicks the + sign next to an item, it pops out instantly rather than requesting data from the server. This means instant browsing, and also has the advantage that the entire page loads rather than just parts.

Since HTML is compressed in transmission, the additional overhead of sending the entire tree rather than parts, is largely offset by the better compression that is achieved by a larger textsize.

Also, a server sending many small pages is more latency-constrained than raw datarate constrained, so this prevents lots of small requests by coalescing them into a single send.

Plus, users get significantly improved response times, especially through slower or busy connections.

[EditRar: Putting this random rant back to how it was]

Posted: Tue Apr 03, 2007 10:18 pm
by Rar
What the fuck are you even talking about? The anime page? Try looking at the dev forum.

Rar

Posted: Tue Apr 03, 2007 10:35 pm
by Isochroma
Pardon my intrusion; the topic for this section of the forum is "Bug reports and Feature Requests". I assume this is a feature request, but if the post belongs in the Development forum, maybe you can move it there, or I can delete it and repost there?

Posted: Tue Apr 03, 2007 10:39 pm
by Der Idiot
what he meant is "look at the dev forum"

where you can find:
http://www.anidb.net/forum/viewtopic.php?t=5374

Posted: Tue Apr 03, 2007 10:43 pm
by Isochroma
ah thanks for the link! i already moved it to the development forum, but don't know how to delete this one, so if anyone could delete it that would be great, thanks!

Posted: Wed Apr 04, 2007 1:46 am
by Rar
Oh, jesu, dealing with Iso is such a pain. YOU MADE NO REQUEST. A speech about treeviews in websites with nothing pertaining to anidb isn't useful, wherever you post it.

IF you were trying to say "I want this for the anime page" look at the thread the baka pointed you at, though the "without requesting data from the server" bit is a bad idea (tried clicking 'show all' on Naruto page recently?). If you were just interested in them in general, look at the categories page, which has had an interactive tree imp. since before something was something.

Rar

Posted: Wed Apr 04, 2007 2:18 am
by Isochroma
Yeah, the page you linked to is just what I was thinking about, I really like the way it works! Just like windows explorer, those neat & tidy little plus-minus widgets that instapop the datacrop...