[thesite] comments on test.evolt.org
aardvark
roselli at earthlink.net
Fri Jun 29 14:44:54 CDT 2001
> From: ".jeff" <jeff at members.evolt.org>
>
> nope, only available if you support the getElementById() method.
> here's what happens when the page first loads. there's an empty
> <span> at the top of the comments that is for the "expand/collapse
> all" link. there's another empty <span> next to each comment title
> for the "[ + ]/[ - ]" link. as soon as the page reaches the last of
> the comment section it encounters a function which initializes these
> empty containers for those browsers that support the getElementById()
> method. it inserts the html for the "expand/collapse all" link and
> the html for each "[ + ]/[ - ]" link. then, if there are more
> comments than the threshold we've defined it calls a function which
> toggles all the comments to the collapsed state.
>
> if you're browser doesn't have js enabled or it doesn't support the
> getElementById() method it simply stays the way we're all used to
> seeing it.
very cool... i'll have to hit it from NN3 when i find the URL... just out
of curiosity...
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> : we claimed one template for all users, so why
> : not stick to it?
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> because it takes alittle more setup than an initial prototype
> warrants. however, it *is* setup that way now for demonstration
> purposes.
gotcha...
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> : are you gonna eat that?
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> eat what?
sorry, wrote that on a quick break from a 4 hour meeting where i
was supposed to be getting lunch, but replied to you instead...
More information about the thesite
mailing list