so say you get "1|3|2" and your nodes have id "li_1" etc.
something like the following should work:
var sortedList = "1|3|2".split("|")
var expr = "#li_" + sortedList.join(", #li_")
jQuery(expr).appendTo("#container")
-- Yehuda
On 12/31/06, Philip Pryce <[EMAIL PROTECTED]> wrote:
slight typo,
Each node has an id, and i have it on a list, i just need the "li"'s to be
reordered once the page is loaded again to this order.
On 31/12/06, Philip Pryce <[EMAIL PROTECTED]> wrote:
>
> each node has and id, and i have it listed, i just need to reorder them
> once the page loads again.
>
> On 31/12/06, Yehuda Katz < [EMAIL PROTECTED]> wrote:
> >
> > Do each of the nodes have an ID? Or are you basing it on their initial
> > order?
> >
> > -- Yehuda
> >
> > On 12/31/06, Philip Pryce < [EMAIL PROTECTED]> wrote:
> > >
> > > i've already found a way to remember the serialized code for the
> > > lists, just how to restore the serialized numbers back into lists?
> > > thanks.
> > >
> > > On 31/12/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Do you mean without any server-side script? If so, you might try
> > > > using the cookie plugin to store the data and pull it back out on
page-load.
> > > >
> > > > -- Yehuda
> > > >
> > > > On 12/31/06, Philip Pryce <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > > When i save my sortables as serialized data, is there a way of
> > > > > restoring it
> > > > > using the a sortable (sort?) function i jQuery?
> > > > > Say a list like:
> > > > > left = '1|3|2';
> > > > > right = '3|1|2';
> > > > > then when the page loads it sorts it into that order
> > > > > automagically?
> > > > > Thanks in Advanced.
> > > > > --
> > > > > View this message in context:
http://www.nabble.com/Sortable-Reorder--tf2901782.html#a8107178
> > > > >
> > > > > Sent from the JQuery mailing list archive at Nabble.com.
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > jQuery mailing list
> > > > > [email protected]
> > > > > http://jquery.com/discuss/
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Yehuda Katz
> > > > Web Developer | Wycats Designs
> > > > (ph) 718.877.1325
> > > > _______________________________________________
> > > > jQuery mailing list
> > > > [email protected]
> > > > http://jquery.com/discuss/
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > ~Philip Pryce
> > > _______________________________________________
> > > jQuery mailing list
> > > [email protected]
> > > http://jquery.com/discuss/
> > >
> > >
> > >
> >
> >
> > --
> > Yehuda Katz
> > Web Developer | Wycats Designs
> > (ph) 718.877.1325
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
> >
> >
>
>
> --
> ~Philip Pryce
>
--
~Philip Pryce
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/