i'm using following j query to Reorder tree view Nodes
now i want to save these nodes in File or on Server Side
how i can do this....
<div id="tree">
</div>
<script type="text/javascript"><!--
$(function () {
$("#tree").dynatree({
initAjax: {
url: "sample-data3.json"
},
onLazyRead: function (node) {
});
},
dnd: {
onDragStart: function (node) {
logMsg("tree.onDragStart(%o)", node);
return true;
},
onDragStop: function (node) {
logMsg("tree.onDragStop(%o)", node);
},
autoExpandMS: 1000,
preventVoidMoves: true,
onDragEnter: function (node, sourceNode) {
logMsg("tree.onDragEnter(%o, %o)", node, sourceNode);
return true;
},
onDragOver: function (node, sourceNode, hitMode) {
logMsg("tree.onDragOver(%o, %o, %o)", node, sourceNode, hitMode);
if (node.isDescendantOf(sourceNode) && sourceNode.parent.data.title != node.parent.data.title) {
return false;
}
if (!node.data.isFolder && hitMode === "over") {
return "after";
}
},
onDrop: function (node, sourceNode, hitMode, ui, draggable) {
if (node.parent.data.title != sourceNode.parent.data.title)
return;
if (hitMode == 'over')
hitMode = 'before';
logMsg("tree.onDrop(%o, %o, %s)", node, sourceNode, hitMode);
sourceNode.move(node, hitMode);
},
onDragLeave: function (node, sourceNode) {
logMsg("tree.onDragLeave(%o, %o)", node, sourceNode);
}
}
});
}
);
--></script>