jsTree ノードのいずれかがクリックされるたびに mypage.aspx ページにリダイレクトしたい (jsTree ノードに関連付けられた ID がそのページに渡され、それに応じてページがレンダリングされます)。私はjsTreeのコードに従っています。
<script type="text/javascript">
$(function () {
$("#mydiv").jstree({
"plugins": ["themes", "json_data"],
"json_data": {
"ajax": {
"async": false,
// the URL to fetch the data
"url": "../Handlers/HandleRequest.aspx",
"data": function (n) {
return {
"PassID": "<% = UserNameCtrlID %>"
};
}
}
},
// Configuring the search plugin
"search": {},
"types": {},
"ui": { "initially_select": ["node_4"] },
"core": { "initially_open": ["node_2", "node_3"] }
});
});
</script>
前もって感謝します!