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. -----Original Message----- From: complaw@hal-pc.org [mailto:complaw@hal-pc.org] 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 clicks on the hyperlink, they are simply calling another Z SQL Method that is 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 HTML table. What I would like to do with the table is make the column headers sort the results in ascending and descending order when they click on the link. I haven't really seen any Howtos or anything in the Zope book that describes or explains what I'm trying to do. If someone could help me with this I'd appreciate it.
Thanks, Lucas Vogel
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )