Note that there are some explanatory texts on larger screens.

plurals
  1. PODrawing a line between two draggable divs
    primarykey
    data
    text
    <p>Yes I know that this kind of questions have been asked before in the following links: <a href="https://stackoverflow.com/questions/4684568/how-to-connect-draggable-divs">Question 1</a>, <a href="https://stackoverflow.com/questions/4712189/how-to-draw-a-line-between-2-elements-using-jquery-and-refreshing-that-line">Question 2</a> and <a href="https://stackoverflow.com/questions/536676/how-to-draw-a-line-between-draggable-and-droppable">Question 3</a>. But my question is quite different from already asked questions. </p> <p>What I want is following: I have two draggable divs and have a connector (a straight line) between them (drawn with SVG line). When I move these draggable divs I need to move a connector between them accordingly. My question is more similar to the <a href="https://stackoverflow.com/questions/536676/how-to-draw-a-line-between-draggable-and-droppable">Question 3</a>, but there in that question, once a user creates a connection between divs those divs stop being draggable, so they don't care about refreshing connectors. </p> <p>Has anybody ever met any working example or demo of what I am saying? Or, could anybody give me any ideas of how to do that in an optimal way please? </p> <p>Just in case, I am using jQuery as a javascript framework (if it worth to know that).</p> <p>Thanks a lot.</p> <p><strong>UPDATE 1</strong></p> <p>I have found this <a href="http://kennykee.com/?p=15" rel="noreferrer">demo</a> also, but it works very very bad, I would say incorrectly.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload