Hi,
As I said, I am handling this server side for bigger dynamic generated
lists, but sometimes lists are static and I still want to allow simple
resorting of those lists.

In those static cases, I could save the serialized array to a cookie or a
session and would like to restore the order using an initial client side
resorting of the elements.

Currently you are bound to a server side saving of the layout to restore its
order. 

Using a client side approach would free you from that, allowing to use
sortables for static pages aswell.

Cheers
Alexander


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von [EMAIL PROTECTED]
Gesendet: Donnerstag, 30. November 2006 08:56
An: jQuery Discussion.
Betreff: Re: [jQuery] Suggestion for interface / sortables

> Hi,
>
> I love the interface plug-ins, but they lack the functionality to resort
> elements on load. In my case this mostly concerns the sortables.
>
>
What do you mean, that you want to print your HTML and "sort" the list
after it is build (using array/hash)? Why not add some business logic, and
make sure the list has the correct state when building it?

e.g. instead of this:
* item3
* item2
* item5
* item1
* item4

make sure it prints like this:
* item1
* item2
* item3
* item4
* item5

Making the sortable "resort" itself requires a custom function, since
everybody uses the sortables with different content.

Or maybe i don't understand what you mean.

-- Gilles



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to