Categories | Question details Back To List | ||
Calling a funtion after the xml loads or the response settles down in tabbar 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 Answer posted by Support on Sep 02, 2008 01:39 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 tabbar.setOnTabContentLoaded(function(id){ alert("tab "+id+" has load"); }); This will work for "ajax" and "ajax-html" modes |