Re: RE: Web interface prototype

[email protected] Wed, 19 Feb 2003 13:37:20 +0100 (CET)
Newsgroups gmane.music.equipment.slimp3.dev
Message-ID <[email protected]>
On Tue, 18 Feb 2003, Herb Caudill wrote:

> My experience with DHTML is exclusively as a client-side technology;
> if there's a way to have it pull new data from the server without
> refreshing the page, I'm not aware of it.

If you assume a browser capable of DHTML and Javascript then this is
both possible and practical.

For a live example, create a login for yourself on kuro5hin.org (if you
don't have one already, go to "Comment-Prefernces" and put a + in the
field for "Dynamic threaded".

This will load the comments as a collapsed tree, and then dynamically
expand the branch you click on. *without* reloading the entire page. (it
fetches from the server only the newly expanded branch)

If you collpase a branch, and then re-expand it the same data are *not*
fetched a second time. The code for this is part of "Scoop" an GPLed
news-site thingie (similar to slashdot, but with more of a proper design
and less of kilometers of duct-tape and wire.)

If anyone is interested in how this is achieved, then the relevant code
is available from http://kuro5hin.org/dynamic-comments.js


Sincerely,
	Eivind Kjørstad

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/