You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2006-06-29 22:57:35

mags
Member
From: CH
Registered: 2006-06-06
Posts: 12

faster table sorting without reload

I have used this package:
http://www.workingwith.me.uk/articles/s … le_sorting

in several projects and found it to be quite nice for fast column sorting of tables in html without reloading the page.

I think it should be as simple as:
1. merging the styles in the glpi css class "tab_cadrehov" with the functionality from the standardista css class "sortable" into a new style.
2. enclosing with thead and tbody.
3. naturally remove <a href="..."></a> from all <th>.

e.g.

<table border='0' class='tab_cadrehov_sortable'>
<thead><tr class='tab_bg_2'>
<th></th>
<th>Foo</th>
...
</tr></thead>
<tbody>
<tr class='tab_bg_2'>
<td  width='10'><input type='checkbox' name='item[1]' value='1' ></td>
...
</tr>
</tbody>
</table>

currently I am trying to get an example working; but I have to figure out where all the pieces of the html rendering code, first ^_^


non toxique (si utilisé comme prescrit)

Offline

#2 2006-06-29 23:13:40

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: faster table sorting without reload

It is not so simple because the sort is only on the current display items.
To have a real sort system you need to sort all items not only the displayed items.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2006-06-29 23:16:45

mags
Member
From: CH
Registered: 2006-06-06
Posts: 12

Re: faster table sorting without reload

ah yes, that is a very good point!!


non toxique (si utilisé comme prescrit)

Offline

Board footer

Powered by FluxBB