Opening another window in an Appcelerator Titanium-app doesn't work <p>I've got basically 5 windows in my iPad-application (created with Appcelerator Titanium) and want to be able to navigate forth and back (a back and and a next-button for that purpose). The following approach doesn't work. Nothing happens upon clicking the button.</p> <p>The first window is opened in my app.js like this:</p> <pre><code>var window = Titanium.UI.createWindow({ url:'mainwindows.js', modal: true }); window.open(); </code></pre> <p>then in mainwindows.js I've got a button called 'next' which does this:</p> <pre><code>buttonNext.addEventListener('click', function(e){ var newWindow = Titanium.UI.createWindow({ url: "step_1.js", title: "Step 1" }); win.open(newWindow, { animated:true}) }); </code></pre>