Re: Ajax Sortable & Droppable together?
Re: Ajax Sortable & Droppable together?
- Subject: Re: Ajax Sortable & Droppable together?
- From: Ken Anderson <email@hidden>
- Date: Tue, 03 Sep 2013 15:25:50 -0400
Samuel,
I'm not really sure I'm being clear with what I want to do.
I have a list of source objects in one repetition. The items are draggable. Then, I have a drop zone, but when you drop one of the draggable items it always puts it at the end.
What I need to do is:
1) Determine between what items on the destination at the droppable item was dropped.
2) Insert the item at that point in the array on the server side.
I'm really not clear how to do this. I would think I would at least need to work with javascript to know WHERE it was dropped in the droppable zone. Am I wrong?
Thanks for all your assistance!
Ken
On Sep 3, 2013, at 2:35 PM, Samuel Pelletier <email@hidden> wrote:
> Ken,
>
> I do not have an example but the cool thing is you do not need to know javascript to use these. Check the AjaxExample project in the wonder source.
>
> You create AjaxDroppable and AjaxDraggable (they create div html elements by default), bind them to actions and objects. On drop, the action and called with the objects bounds as expected.
>
> You will only need to dig into Prototype and Scriptaculous doc if you want to fine tune behaviour like filter acceptable drop targets.
>
> Samuel
>
> Le 2013-08-30 à 16:46, Ken Anderson <email@hidden> a écrit :
>
>> Thanks Samuel. Would you have an example? I have to say, I'm no javascript expert…
>>
>>
>> On Aug 30, 2013, at 2:05 PM, Samuel Pelletier <email@hidden> wrote:
>>
>>> Ken,
>>>
>>> You can create multiple droppable instance and even put droppable inside droppable for a more precise location. You can have a draggable inside a droppable too.
>>>
>>> I created a truck dispatch application with those where you can dispatch a job to a truck (the created destination added at route end), after a specific destination and reorder the truck destinations.
>>>
>>> Samuel
>>>
>>> Le 2013-08-28 à 22:43, Ken Anderson <email@hidden> a écrit :
>>>
>>>> Colleagues,
>>>>
>>>> Using the Ajax stuff in Wonder, I would like to have the ability to drag from the source repetition and drop at a specific point in the droppable region. This is pretty much having sortable and droppable in the same area. Has anyone done this? If not, does anyone have a recommended approach?
>>>>
>>>> Thanks,
>>>> Ken
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden