[Zope] sorting a table

Joshua Lanza jlanza@vorsite.com
Wed, 2 Jan 2002 16:19:28 -0800


Or there's always dumping the result set into an xml data island and
using javascript to sort it - fairly easy to do and takes a lot of work
off of the server, but only works on newer browsers.=20

-----Original Message-----
From: complaw@hal-pc.org [mailto:complaw@hal-pc.org]=20
Sent: Wednesday, January 02, 2002 4:14 PM
To: Lucas Vogel; zope@zope.org
Subject: Re: [Zope] sorting a table

Normally what I do is have the table header/title include a hyperlink to

another Z SQL Method (one that sorts the way you want it to).  When the
user=20
clicks on the hyperlink, they are simply calling another Z SQL Method
that is=20
set to deliver the HTML table in the desired order.

HTH,

Ron


> I have a DTML method that calls a Z SQL Method and places the results
into an=20
> HTML table. What I would like to do with the table is make the column
headers=20
> sort the results in ascending and descending order when they click on
the=20
> link. I haven't really seen any Howtos or anything in the Zope book
that=20
> describes or explains what I'm trying to do. If someone could help me
with=20
> this I'd appreciate it.
>=20
> Thanks,
> Lucas Vogel
>=20
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )