Categories | Question details Back To List | ||
setOnTabContentLoaded Hi, I've working with TabBar (PRO), and I am having a problem with setOnTabContentLoaded I've loading the tabs with ////////////////////////// var divContent; divContent = "<div id='divChart' style='width:100%;height:100%;overflow:hidden'>"+ "<iframe style='width:100%;height:100%' src='http://localhost/routing/include/Charts/FSMonitor/chartFSMonitor.asp?" + PARAMS + "'></iframe>"+ "</div>" tabbar.setContentHTML("tab"+type, divContent); ////////////////////////////////////////////////////////// By other hand, I am attaching an event to the tabbar with tabbar.setOnTabContentLoaded(doOnTabContentLoaded) ////////////////////////////////////////////////////////// As you can see , I am loading the tabs using "setContentHTML", but the event setOnTabContentLoaded never run / doesn't work Please tell me if setOnTabContentLoaded event works only work using "setContentHref" and mode ajax-html Thanks Answer posted by Alex (support) on Sep 04, 2009 03:41 Hello, yes, onTabContentLoaded event is fired for ajax-based loading. Ajax loading is asynchronous and event is necessary. But tabbar doesn't control its content. So, you should attach onload event handler directly in the http://localhost/routing/include/Charts/FSMonitor/chartFSMonitor.asp |