Hi,
I am trying to use jsPlumb in one of my application in which i am getting a data from XML and displaying in the form a tree. basically I have two trees,and I need to draw a line between each node of the tree. So therefore i am using jsPlumb to do so. By selecting the id of each node of a tree i am adding an endpoint.Something like this
jsPlumb.ready(function() {
e1 = jsPlumb.addEndpoint("__node3",endpointstyling1);
e2 = jsPlumb.addEndpoint("__node37",endpointstyling2);
});
__node3 and __node 37 are the id's of <li> elements(or nodes) of each tree.
But i am getting an error saying Uncaught TypeError: Cannot read property 'left' of undefined and this is referring to
jquery.jsPlumb-1.3.16-all.js:537 . Its working fine if i give ID's of <div> elements inside which i have constructed a tree but same thing is not applicable for this logic.
Thanking you in anticipation.