Drag and Drop multiple items between lists at once

  • Follow


Hi People,

Just wondering if any of you have ever come across any javascript
examples that will allow one to drag and drop multiple items between
lists?  That is, users would be able to use the "Shift" or "Ctrl"
buttons to select multiple items from LIST 1 and drag them to LIST 2 in
one go.

I've already have the code to drag and drop between lists but for 1
item at a time.  The only method to move multiple items between lists
in one go that I'm aware of is to use <select multiple>, but with this
approach I loose the drag and drop feature and will be stuck with
buttons.

If any of you could help I'll really appreciate it.


Thank you
AC

0
Reply anchi.chen (2) 12/29/2006 1:36:03 AM

anchi.chen@gmail.com wrote:
> Hi People,
>
> Just wondering if any of you have ever come across any javascript
> examples that will allow one to drag and drop multiple items between
> lists?  That is, users would be able to use the "Shift" or "Ctrl"
> buttons to select multiple items from LIST 1 and drag them to LIST 2 in
> one go.
>
> I've already have the code to drag and drop between lists but for 1
> item at a time.  The only method to move multiple items between lists
> in one go that I'm aware of is to use <select multiple>, but with this
> approach I loose the drag and drop feature and will be stuck with
> buttons.

You can probably add mutiple drag behavior quickly to your existing
code. I wrote up an example for adding this to the Yahoo! UI

<URL: http://peter.michaux.ca/article/4>

And here is a more recent example with my drag library

<URL: http://forkjavascript.org/drag/multiple>

Peter

0
Reply Peter 12/29/2006 2:02:12 AM


Hi Peter,

Thanks so much for your examples. I'll give them a try now.

Thanks again.
An Chi

Peter Michaux wrote:
> anchi.chen@gmail.com wrote:
> > Hi People,
> >
> > Just wondering if any of you have ever come across any javascript
> > examples that will allow one to drag and drop multiple items between
> > lists?  That is, users would be able to use the "Shift" or "Ctrl"
> > buttons to select multiple items from LIST 1 and drag them to LIST 2 in
> > one go.
> >
> > I've already have the code to drag and drop between lists but for 1
> > item at a time.  The only method to move multiple items between lists
> > in one go that I'm aware of is to use <select multiple>, but with this
> > approach I loose the drag and drop feature and will be stuck with
> > buttons.
>
> You can probably add mutiple drag behavior quickly to your existing
> code. I wrote up an example for adding this to the Yahoo! UI
>
> <URL: http://peter.michaux.ca/article/4>
>
> And here is a more recent example with my drag library
> 
> <URL: http://forkjavascript.org/drag/multiple>
> 
> Peter

0
Reply anchi 12/29/2006 2:28:43 AM

2 Replies
495 Views

(page loaded in 0.022 seconds)

Similiar Articles:













7/20/2012 9:19:56 AM


Reply: