Jump to content

Jquery And Callback Help


bakunin

Recommended Posts

I want to add command to process during a callback of an existing object.lets say i have a JStree:

$("#item").tree({ 			data  : {					type  : "json",   				json  : "file1.xml"				},																	 			  callback	: {				 				onselect	: function(NODE) {														var html = parse(NODE.id);  				}			}			 });

Now i want to add something else later in the code in the event: "onselect".I tried this:

$("#item").tree({																				  callback	: {				 				onselect	: function(NODE) {														var html = parse(NODE.id);  				}			}			 });

and that:

$("#item").click(function(NODE){ 				alert(NODE.id);				});

but the parameters NODE does not follow. Anyone know how i should formulate my code so i can update a callback of an existing object ?thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...