The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

IE Drag and Drop with javascript

I can do a textbox to textbox drag and drop.

But I cannot do the same for a listbox.  I am wanting the user to be able to drag an item from one listbox to another.

My users will all be using IE.

Any help?
Steve Send private email
Saturday, July 02, 2005
 
 
OpenRico is a wonderful JavaScript library. You can find an interesting demo here.

http://www.openrico.org/demos.page?demo=ricoDragAndDropCustomDraggable.html
Pythonic Send private email
Saturday, July 02, 2005
 
 
I've done this before. No code to hand tho'. Sorry.

Google "drag drop listbox javascript". There are some links on the first results page that should help.
Justin Send private email
Saturday, July 02, 2005
 
 
most are all textbox examples and Win32/ie VB examples.
Steve Send private email
Sunday, July 03, 2005
 
 
I still can't find the code.

I did this last year as an interface prototype which we ended up not using.

These links are definitely DHTML:

http://www.javascriptkit.com/howto/drag.shtml

http://www.siteexperts.com/tips/styles/ts18/page1.asp

and although they don't address listboxes directly, you should be able to adapt the code - these are almost certainly what I started with. I remember the images from the first link.
Justin Send private email
Monday, July 04, 2005
 
 
Here is another one, http://script.aculo.us/

You can either use the library as it is or at least read the source code and learn from it.
Pythonic Send private email
Monday, July 04, 2005
 
 
thank you - I have seen these types of drag and drop examples.

However, none that I have seen so far support drag and drop from items in one listbox into another listbox.
Steve Send private email
Tuesday, July 05, 2005
 
 
Look at www.backbase.com.  It's a nice "AJAX" library, with d&d features.  Maybe you will find something in there.  There is a community edition so you can freely try it.

Have fun!
Hugo Frappier Send private email
Tuesday, July 05, 2005
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz