Loading ...
Sorry, an error occurred while loading the content.

Re: Drag and Drop move by double-click

Expand Messages
  • jck003
    Thanks Dav, that works great!!!! Jack
    Message 1 of 3 , May 2, 2008
    • 0 Attachment
      Thanks Dav, that works great!!!!

      Jack



      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      > Jack --
      >
      > Following this example:
      > http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html
      >
      > Inside the DDList constructor you could add something like this
      (haven't tested it..):
      > YAHOO.example.DDList = function(id, sGroup, config) {
      >
      >
      > Event.on(this.getEl(), 'dblclick', function() {
      > var el = this.getEl(),
      > par = el.parentNode,
      > parNode = null;
      > if (par.id == 'ul1') {
      > parNode = Dom.get('ul2');
      > } else {
      > parNode = Dom.get('ul2');
      > }
      > parNode.appendChild(el);
      > this.DDM.refreshCache();
      > }, this, true);
      > };
      >
      >
      > Does that make sense?
      > Dav
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      > ----- Original Message ----
      > From: jck003 <jck000@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Friday, May 2, 2008 7:28:31 AM
      > Subject: [ydn-javascript] Drag and Drop move by double-click
      >
      >
      >
      > I'd like to create two lists similar to the Drag and "Drop to Reorder
      > a List" example and move items from one list to the other by double
      > clicking on the item. How can I do this?
      >
      >
      > Thank You
      > Jack
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.