Anything is possible.
Sounds like you want Sortables:
http://wiki.script.aculo.us/scriptaculous/show/Sortable.create
If you hook up your table of contents divs as Sortables and then
attach an "onUpdate" (Called when the drag ends and the
Sortable''s
order is changed in any way) to each Sortable, you can fire off a
function that repositions the corresponding body div.
-B
On Oct 19, 3:50 pm, validkeys
<kyle.da...-s5CVtH8h5JrZ3NRrNVlbw1aTQe2KTcn/@public.gmane.org>
wrote:> I have a table of contents that lists the 3 sections of my page
> (title,blurb,body). Below that I have each section in its own div
> (title_div) etc.. Is it possible to sort the body divs by dragging and
> dropping the table of contents sections?
>
> For example, if I drag "Title" below "Body" in the
table of contents,
> I would like the title_div to also move below the body_div.
>
> Is this possible?
>
> Thanks so much!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---