By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,979 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,979 IT Pros & Developers. It's quick & easy.

Drag and Drop multiple items between lists at once

P: n/a
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

Dec 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
an********@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

Dec 29 '06 #2

P: n/a
Hi Peter,

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

Thanks again.
An Chi

Peter Michaux wrote:
an********@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
Dec 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.