[jQuery] Ajax combined with dra and drop
Hi,
I have two hierarchical trees, one soruce-tree, one destination-tree.
When I gran a "dragable" from the source-tree and move it over an node
in the destination-tree, the destination-node is opend and all subnodes
are loaded with ajax.
The problem is, that these new subnodes are no "dropables". When I
release the "dragable" and grab it again, suddenly the subnodes are
"dropables" too.
It seems, that the "dragable" only "knows" the node that where
"dropables" from before the ajax, but not the new inserted nodes from
the ajax.
Is this a normal behavior? Is there a way arround this?
One other question:
I have several types of nodes. Not every node is accepting every other node.
E.g.
We have types A,B,C
A can have subnodes from the types A,B
B can have subnodes from the types A,B,C
C can have subnodes from the types A
Is there a way to assing more than one class to the variable "accept" in
the dropable? Or is there an other solution?
Michael