bakunin Posted September 7, 2009 Share Posted September 7, 2009 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 More sharing options...
bakunin Posted September 8, 2009 Author Share Posted September 8, 2009 Is it impossible ? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 8, 2009 Share Posted September 8, 2009 You'll need to look through the jquery documentation to see how to modify an existing callback. It's not apparent from that code how to access the existing callback function. Link to comment Share on other sites More sharing options...
bakunin Posted September 8, 2009 Author Share Posted September 8, 2009 You'll need to look through the jquery documentation to see how to modify an existing callback. It's not apparent from that code how to access the existing callback function.ok, thks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.