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.
在我的app.js中,第一个窗口是这样打开的:
var window = Titanium.UI.createWindow({
url: mainwindows.js ,
modal: true
});
window.open();
然后在mainwindows.js中,我有一个名为next的按钮,它可以执行以下操作:
buttonNext.addEventListener( click , function(e){
var newWindow = Titanium.UI.createWindow({
url: "step_1.js",
title: "Step 1"
});
win.open(newWindow, { animated:true})
});