Hi I had resolved the question with the code at the end... but
how can I do the same thing using callback option?
I tried some example but it deosnt works!
for example "alert('ok') is never runned (int the following code):
jQuery('#nomeAlbero').jstree({
"callback": {
"onclick" : function(node)
{
alert('ok!!!');
}
},
'core':{
'data': response,
"animation" : 400,
"multiple" : false,
"check_callback" : true
},
"plugins" : ["search"]
});
$('#nomeAlbero').on('dblclick', function(event){
var ref= $('#nomeAlbero').jstree(true);
sel = ref.get_selected();
sel = sel[0];
alert('you doubleclick on :'+sel);
});
Thank you in advance,
Oda