以下のコードを使用してノードの名前を変更しようとしています。ノードのIDと新しい名前をserver.aspxに渡す必要があります。
ノードの新しい名前を取得するにはどうすればよいですか
これらの2つの値をserver.aspxページに渡すにはどうすればよいですか?
ありがとう
.bind("rename.jstree", function (e, data) {
data.rslt.obj.each(function () {
$.ajax({
async: false,
type: 'POST',
url: "./ajax/server.aspx",
data:
{
"operation": "rename_node",
"id": this.id
},
success: function (r) {
if (r == "-1") {
$.jstree.rollback(data.rlbk);
}
else {
$(data.rslt.oc).attr("id", "node_" + r.id);
if (data.rslt.cy && $(data.rslt.oc).children("UL").length) {
data.inst.refresh(data.inst._get_parent(data.rslt.oc));
}
}
}
});
});
})