[sf-perl] OffTopic: Any JavaScript programmers here?
Rich Morin
rdm at cfcl.com
Sat Jul 5 13:15:43 PDT 2008
At 07:45 -0700 7/5/08, David Scott wrote:
> You have to back off and ask yourself, why do you need a sorted
> list in the first place? Aren't the list items coming to you
> from some source, like a database query? ...
Good questions. Here are two responses:
* In this case, the list is being generated by TWiki, a web
templating system and CMS, thinly disguised as a wiki. It
may be possible to get TWiki to re-order a given list, but
it's not as flexible as executable code might be.
* More generally, going back to the server and asking for a
page refresh takes longer than running JS locally. Given
that Vicki wants responsive, interactive control of the
sort order, JS seems to be the only game in town.
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm at cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, and web development
More information about the SanFrancisco-pm
mailing list