Titanium.PAGE_LOAD
var win4 = Titanium.UI.createWindow({
//title:'Favourites',
backgroundColor:'#000',
barImage:'titles/titleSettings.png'
});
var tab4 = Titanium.UI.createTab({
icon:'icons/icoSettings.png',
//title:'Tab 1',
window:win4
});
win4.addEventListener(Titanium.PAGE_LOAD,function() {
alert("Window 4 loaded");
Ti.API.info("hello");
},true);
Hi I am trying the run a function when tab4 is press but the onload dose not work.
can anyone help me run a function when a tab is clicked
Thanks in advance
1 Answer
-
The correct name of the event constant is Titanium.PAGE_LOADED (Actually Ti.PAGE_LOADED in the successor to Titanium Desktop: TideSDK )