- 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?
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