Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Loading a new page in a tabgroup

$
0
0

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


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>