Skip to content

Appcelerator Titanium API – Changing the MainWindow URL

July 3, 2010

I have found that in some cases the Titanium documentation is not very clear how you can access various objects and set different properties, but here is just a simple quickie about changing the main window’s URL string.

Code:

Titanium.UI.getMainWindow().setURL(“app://main_menu.html”);

Alternatively:

var window = Titanium.UI.getMainWindow();

window.setURL(“app://main_menu.html”);

That’s it!

Thanks for visiting my blog, and be sure to subscribe to me on Youtube and follow me on both Tumblr and Twitter!

Advertisements

From → regular

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: