jQuery: The Write Less, Do More JavaScript Library

 « Return to Thread: Sortable nested elements

Re: Sortable nested elements

by Simon-2707 :: Rate this Message:

Reply to Author | View in Thread


Were you able to drag elements out of the nest and then drag them back
in the nest if the parent element did not have any existing child
elements? (Sorry for the confused wording)

I posted this question a few days ago (no response).

Reference:
http://groups.google.com/group/jquery-ui/browse_frm/thread/280f86fc0abf0df6/d2eb0431af52e36e?lnk=gst&q=skhchiu#d2eb0431af52e36e


On Jul 2, 3:56 pm, "Josh Nathanson" <joshnathan...@...> wrote:

> In my first round of testing, this seems to work just fine.  I am using
> nested divs but it should work the same regardless of the element types.
>
> -- Josh
>
> ----- Original Message -----
> From: "BenR" <ben.roo...@...>
> To: "jQuery UI" <jquery-ui@...>
> Sent: Wednesday, July 02, 2008 5:40 AM
> Subject: [jquery-ui] Sortable nested elements
>
> > Can sortable handle nested elements?
> > I have a flatplan app for a magazine - I want to be able to move pages
> > onto spreads, and move spreads around the flatplan. So a user could
> > move say page 2 from the first spread onto the 2nd spread, and move
> > the whole of the second spread to be the, say, 15th spread - and so
> > on.
> > Obviously I will need to build some logic that only allows two pages
> > per spread (printers are so demanding that way) but having used UI
> > elsewhere am keen to re-use if pos.
> > I am also looking at jTree to do this - but would prefer to re-use UI
> > if pos. Is it pos? And any pointers hugely appreciated - virtual pints
> > of ale all round.
>
> > Many thanks
> > Ben
>
> > (this is the sort of thing I had in mind ...)
> > <ol>
> >  <li id="spread_1">
> >    <ol>
> >       <li id="page_1"><img src=" jpeg of p1"  /></li>
> >       <li id="page_2"><img src=" jpeg of p2"  /></li>
> >    </ol>
> >   </li>
> >  <li id="spread_2">
> >    <ol>
> >       <li id="page_3"><img src=" jpeg of p3"  /></li>
> >       <li id="page_4"><img src=" jpeg of p4"  /></li>
> >    </ol>
> >   </li>
> > ....
> > </ol>
>
> > Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@...
To unsubscribe from this group, send email to jquery-ui-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Sortable nested elements

LightInTheBox - Buy quality products at wholesale price!