Jump to content

Jquery And Callback Help


bakunin
 Share

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

Edited by bakunin
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...