Hi all, It's been a few years since I last used Appcelerator, so I've forgotten some of the basics. Question: I have created a tab group. The tabgroup opens a homepapage, in that homepage is a button that attempts to load to a register page. The event listenener on the button is throwing an annoying error.
CODESNIPPETS The tabgroup that loads the homepage
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'HOME',
url: 'home_main.js',
});
The button event listener code on homepage (home_main.js) buttonHome1Login.addEventListener('click',function(e) { Titanium.UI.currentWindow({ title: "Register", url: "home_register.js",
}); win.add(buttonHome1Login); Any idea what's wrong with the eventlistener code?
Any thoughts? Thanks, Lee