On Jun 18, 2:53 am, laspal <[EMAIL PROTECTED]> wrote:
> I have a list of employee and i want to sort it.
>
> <a href="" > Employee </a>   ( this is my header)
> under which i have list of employee.
>
> So now my question is on clicking employee header I want to change the
> list.
> Like it happens for user in django admin.

Google "unobtrusive javascript table sort"

Here's a sample:
* 
http://www.frequency-decoder.com/2006/09/16/unobtrusive-table-sort-script-revisited


Put the list in a table. Employee changes from an <a> to a <th>. Each
employee name goes in a <td> in a separate <tr>. Add a script, and
it'll sort like magic.



--
Austin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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