[whatwg] Drag and drop in HTML5

Ian Hickson ian at hixie.ch
Thu May 5 14:12:59 PDT 2005


On Thu, 5 May 2005, Hallvord Reiar Michaelsen Steen wrote:
> 
> 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;
>  }else 
>    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..?

Do you mean that instead of labelling each draggable element as draggable, 
you would instead add each draggable element to a list?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list