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

Re: [ydn-javascript] Drap Drop Issues

Expand Messages
  • Musavir Khan
    ... Hi Adam, Thanks for replying , it solves one of the two problems that i had. about the mark, before that its like a demo sort of thing s mark is here, the
    Message 1 of 3 , Apr 5 10:15 AM
    • 0 Attachment
      On 4/5/06, Adam Moore <adamoore@...> wrote:
      Hi Musavir,
      > second is, drag an element and drop it on other dragable object it they are
      > swapped but most of the times they overlap with one another.
      > can anyone tell me how to overcome this.

      The swap node function just switches the location of the elements in the
      DOM.  If they are not landing where you think they should, then it probably
      has to do with the markup or css.  It may be that swap node is not what you
      need to do in your implemntation.  What does the markup look like?


      -Adam

      Hi Adam,
                      Thanks for replying , it solves one of the two problems that i had. about the mark, before that its like a demo sort of thing's mark is here, the mark up has table under which two images are present which are the dragable elements. when i drag a element(image1) and  and drop it over image2 then this happen. thanks for replying earlier. Here is the mark up.


      <table class="ajaxBuilder_table" id
      ="ajaxBuilder_table"><tbody><tr><td
       colspan="1" rowspan="1" id=
      "cell0" class="acell"><img style=
      "width: 100px; height: 100px;" class="undefined" id="Image1" 
      name="Image1" alt="This is a sample image" 
      src="/ajaxdc/builder/images/sample.jpg"></td><td colspan=
      "1" rowspan="1" id="cell1" 
      class="acell"><img style="width: 100px; height: 100px;" 
      class="undefined" id="Image2" 
      name="Image2" alt="This is a sample image" src=
      "/ajaxdc/builder/images/sample.jpg" border="5"></td></tr
      ></tbody></table></body>


      --
      Musavir Ahmed Khan
    Your message has been successfully submitted and would be delivered to recipients shortly.