Categories | Question details Back To List | ||
Enforce reloading of tabs when selected How can I enforce a reload of a tab every time it is selected? I have tried to do so by installing an OnSelectHandler calling forceLoad, but without success (tabs are not selectabl anymore afterwards): tabbar.setOnSelectHandler(on_select_handler); function on_select_handler(idn, ido) { tabbar.forceLoad(idn); } Answer posted on Nov 19, 2007 02:11 result of onSelect event can block tab selection, so you just need return true from it tabbar.setOnSelectHandler(on_select_handler); function on_select_handler(idn, ido) { tabbar.forceLoad(idn); return true; } |