mark.t.m...@googlemail.com
unread,Feb 7, 2011, 2:31:58 PM2/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsTree
When I create a <div> with id="treeview", my simple example below
works. But if I *dynamically* create the container <div> (e.g. using
jQuery append() after the user has pressed a button), the treeview
will not appear. Is there way to resolve this?
$(function () {
$("#treeview").jstree({
"json_data" : {
"ajax" : {
"url" : "test.json",
}
},
"plugins" : [ "themes", "json_data" ]
});
$("#treeview").jstree("set_theme","apple");
$("#treeview").jstree("toggle_icons");
$(".jstree a").live("click", function() {
alert("Testing");
})
});