W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2005

[whatwg] Drag and drop in HTML5

From: Hallvord Reiar Michaelsen Steen <hallvord@hallvord.com>
Date: Thu, 05 May 2005 17:41:01 +0200
Message-ID: <427A5AAD.8649.1B2E609@localhost>
On 4 May 2005 at 22:51, Ian Hickson wrote:

> - Dragging items to classify them. I could see you dragging items from
>   a list of items in a shopping mall interface to a virtual shopping
>   cart, or dragging them out from there to a wishlist. Another example of
>   this is dragging cards (between piles) in a card game.

Or dragging E-mails to folders in a webmail service..

One of the issues here is that there ought to be a way to drag a 
collection of elements that aren't necessarily siblings in the DOM. 
Perhaps a way to specify a "drag-group" to say that certain elements 
considered draggable should be dragged together.

<foo onclick="
if( ! this.draggable ){ 
   this.draggable = true;
   dragGroup = mailBucket;
   this.draggable = false;
" >

 A DragGroup object would be a sort of nodelist.. Perhaps something 
like "myDragGroup.add(this);" would be more logical? Or perhaps just 
assign a specific ID string..?
Hallvord Reiar Michaelsen Steen
Received on Thursday, 5 May 2005 08:41:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:41 UTC