2
无论何时jsTree节点被点击(与jsTree节点关联的ID将被传递到该页面并且页面将相应地呈现),我想重定向到某个mypage.aspx页面。我在jsTree中有以下代码。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>
在此先感谢!
纠正!!!!!!!!!!!!!!!!! – Jai
acutually没有答案为我工作...我怎么能接受! –