abc def foo bar
abc def foo bar

Reputation: 2388

URL based windows in Titanium Appcelerator

I have some questions

Upvotes: 0

Views: 2117

Answers (1)

rivenate247
rivenate247

Reputation: 2101

No naming conventions and you just use the path. window.url = windows/window1.js Also the code run when the window is open as you correctly guessed :-)

var window = Ti.UI.createWindow({
    url: 'windows/window1.js'
});

From docs: "url to a JavaScript file with the windows instructions. this window will create a new JavaScript sub-context that will run in its own thread and global variable space."

I think this sub-contexts info will help you understand them the most.

Upvotes: 2

Related Questions