Calling a funtion after the xml loads or the response settle

I wanna call a function after

tabbar.loadXML(“some url”);

I mean not before this thing is half way. Once the response settles down or the xml loads .

I tried this tabbar.loadXML(“some url”,function(){

alert(‘reaches inside this before i get the response page’);


but its not working alert comes much before the page loads

The function, defined as second parameter of loadXML method will be called when XML loaded
if you are loading only config from XML, while data loaded by separate ajax calls - you need to use different event to catch moment when data for some tab loaded

alert(“tab “+id+” has load”);

This will work for “ajax” and “ajax-html” modes