【发布时间】:2012-12-03 07:57:10
【问题描述】:
每当单击任何 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>
提前致谢!
【问题讨论】:
-
正确!!!!!!!!!!!!!!!!!!
-
实际上没有一个答案对我有用……我怎么能接受!!!