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

drag drop list

Expand Messages
  • rayia1
    I m creating a sortable list base of the yui example here. http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html Is there a easy way built into the
    Message 1 of 3 , Jun 2, 2008
    • 0 Attachment
      I'm creating a sortable list base of the yui example here.
      http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html

      Is there a easy way built into the library to get a reference to the
      element that the dragged item was dropped on?

      Thanks
    • rayia1
      i just needed to look at the example more closely. onDragOver: function(e, id) { var srcEl = this.getEl(); var destEl = Dom.get(id); }
      Message 2 of 3 , Jun 2, 2008
      • 0 Attachment
        i just needed to look at the example more closely.

        onDragOver: function(e, id) {

        var srcEl = this.getEl();
        var destEl = Dom.get(id);
        }

        --- In ydn-javascript@yahoogroups.com, "rayia1" <raymondsiu@...> wrote:
        >
        > I'm creating a sortable list base of the yui example here.
        > http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html
        >
        > Is there a easy way built into the library to get a reference to the
        > element that the dragged item was dropped on?
        >
        > Thanks
        >
      • Dav Glass
        rayia1 -- From the example you pointed to: http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html In the second code example, line 111: onDragDrop:
        Message 3 of 3 , Jun 2, 2008
        • 0 Attachment
          rayia1 --

          From the example you pointed to:
          http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html

          In the second code example, line 111:
          onDragDrop: function(e, id) {

          The id here is the id of the element that was dropped on..

          Does that help?
          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: rayia1 <raymondsiu@...>
          To: ydn-javascript@yahoogroups.com
          Sent: Monday, June 2, 2008 6:43:50 PM
          Subject: [ydn-javascript] drag drop list

          I'm creating a sortable list base of the yui example here.
          http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html

          Is there a easy way built into the library to get a reference to the
          element that the dragged item was dropped on?

          Thanks


          ------------------------------------

          Yahoo! Groups Links
        Your message has been successfully submitted and would be delivered to recipients shortly.