> I'll probably need some sort of custom javascript sorting widget thingie > to get it to behave and look nice. I have no idea where I might find > one.
Google is your friend. http://www.google.com/search?q=javascript+table+sort I particularly like jQuery as a Javascript library, so I suggest looking at: http://tablesorter.com/docs/ > I don't mind having to write one from scratch. Gag. Don't do that. A good JS library will save you hours (days? months?) of grief. > I am mostly interested in how a sorting front-end will be represented in > my database-- is the IntegerField a good way to do it? Should the > javascript widget assign a value to a hidden field that gets parsed on > the server side? Is there a 'right' or 'clean' way to accomplish this? Huh? I don't really know what that means, but I'll try to respond to what I *think* you meant. If your dataset will fit comfortably in a single web page, then the tablesorter widget will do the job very nicely. If your dataset is too big to fit, then your frontend needs to tell the backend what the new sort order is and let it do the heavy lifting. The new partial dataset can be sent via AJAX (I recommend the Taconite plugin). Of course, now you need to deal with next/previous paging issues. Peter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

