I am hoping someone from this list may have some ideas on a solution
to a problem I am facing...

I am using a SortHeaders class to perform ascending and descending
filtering on table column headers.  (The SortHeaders is found on
Django Snippets, http://www.djangosnippets.org/snippets/308/, and
works well!)  This works great when performing simple queries based on
GET parameters.

My Question: how to implement the same table header sorting after a
POST request?

In my case I am submitting a form to search for items and then
rendered the queried data with table headers which are intended for
clickable sorting.  The problem is that when I click on the table
headers the data is sent as a GET request and thus the POST query
never takes place.  Any suggestions on solutions?

The only idea I have is create a form around the column headers with
the search filters embedded as hidden inputs.  Then when a user sorts
the table columns by clicking on a column header, the same search
request would be submitted and the data would be ordered by the
desired column.  My biggest problem with this approach is that I can't
get the data to be submitted as a post request.... it always seems to
be submitted as a GET request.

Hopefully all of this makes sense... if not, let me know and I'll shed
some light with examples.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to