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

problem in dragging the complete row in a table

Expand Messages
  • ramya2priya
    I started dragdrop using the example sortedlist http://developer.yahoo.com/yui/examples/dragdrop/list.html?mode=dist and modified the code to
    Message 1 of 1 , Mar 31, 2007
    • 0 Attachment
      I started dragdrop using the example sortedlist
      http://developer.yahoo.com/yui/examples/dragdrop/list.html?mode=dist

      and modified the code to


      <script type="text/javascript">

      YAHOO.example.DDApp = function() {
      var Dom = YAHOO.util.Dom;
      var DDM = YAHOO.util.DragDropMgr;
      return {
      init: function() {

      new YAHOO.util.DD("li1_1");
      new YAHOO.util.DD("li1_2");
      new YAHOO.util.DD("li1_3");
      // DDM.mode = Dom.get("ddmode").selectedIndex;
      }
      };
      } ();

      YAHOO.util.Event.addListener(window, "load",
      YAHOO.example.DDApp.init);

      </script>
      <body>

      <div style="height:200px;">
      <div style="float:left;">
      <h3>List 1</h3>
      <table id="list1" style="width:250px;">
      <tr class="group1" id="li1_1">
      <td>row 1, column 1</td>
      <td>row 1 , column 2</td>
      </tr>
      <tr class="group1" id="li1_2">
      <td>row 2, column 1</td>
      <td>row 2 , column 2</td>
      </tr>
      <tr class="group1" id="li1_3">
      <td>row 3, column 1</td>
      <td>row 3 ,column 2</td>
      </tr>
      </table>
      </div>

      </div>

      I am trying to drag the complete row which is having 2 columns..
      I am also not getting any error...can anyone suggest me in this?

      Appreciate your help

      Ramya
    Your message has been successfully submitted and would be delivered to recipients shortly.