I am showing a hierarchical structure using jtree given below
<div id="songchanges"><ul> <li id="phtml_1"> <a href="#">C:</a> <ul> <li id="phtml_2"> <a href="#">Music</a> <ul> <li id="phtml_3"> <a href="#">Z</a> <ul> <li id="phtml_4"> <a href="#">Hans Zimmer</a> <ul> <li id="phtml_5"><a href="FixSongsReport_00107_2013-09-04-11-11-55_body_blqxgT7E7YOmnBbjFXQGUg==.html">C:\Music\Z\Hans Zimmer\Hannibal</a></li> </ul> </li> <li id="phtml_6"> <a href="#">The Zombies</a> <ul> <li id="phtml_7"><a href="FixSongsReport_00107_2013-09-04-11-11-55_body_er7mjWKbAaYaf8DygP84Fg==.html">C:\Music\Z\The Zombies\Best of The Zombies</a></li> <li id="phtml_8"><a href="FixSongsReport_00107_2013-09-04-11-11-55_body_56XgVDhsjEKWXFd4OzVldA==.html">C:\Music\Z\The Zombies\The Zombies featuring Colin Blunstone & Rod Argent</a></li> </ul> </li> </ul> </li> </ul> </li> </ul> </li> </ul> </div>
and it looks normal like a file system.
This is part of a set of frames and is displayed on the left side of the screen, and when the user clicks on the node sheet, I want him to open the attached link on his right hand (as before I applied jtree stuff to it)
My jtree configuration is as follows
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="songkong.css"> <base target="main"> <script type="text/javascript" src="http://static.jstree.com/v.1.0pre/jquery.js"></script> <script type="text/javascript" src="http://static.jstree.com/v.1.0pre/jquery.cookie.js"></script> <script type="text/javascript" src="http://static.jstree.com/v.1.0pre/jquery.hotkeys.js"></script> <script type="text/javascript" src="http://static.jstree.com/v.1.0pre/jquery.jstree.js"></script> <link rel="stylesheet" href="/resources/demos/style.css" /> <script type="text/javascript" class="source below"> $(function () { $("#songchanges") .jstree({ "plugins" : ["themes","html_data","ui","crrm","hotkeys"], "core" : { "initially_open" : [ "phtml_1" ] } }) .bind("loaded.jstree", function (event, data) { }); $("#songchanges").bind("open_node.jstree", function (e, data) { data.inst.select_node("#phtml_1", true); }); }); </script></head>
I am reading a demo
$(function () { $("#demo3") .jstree({ "plugins" : ["themes","html_data","ui"] })
and tried it, but the .delegate option had no effect, I assume I need to remove the "ui" plugin, but try to make my page look like Ive never used jstree.
Sorting the processed binding option as it displays an annoying warning window displaying an identifier every time I click on any node. So, how can I change it to open the link in my right hand instead?
Update Found this answer Jstree nodes do not work when using the ui plugin
Adding
.bind("select_node.jstree", function (e, data) { var href = data.rslt.obj.children("a").attr("href");
Now the link opens when clicked, unfortunately, it replaces the lefthandside frame with the page, while I want it to put it in the right panel, any ideas.