Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (opening)
Viewing all articles
Browse latest Browse all 4

backbutton issue

$
0
0

Hi,

I have a tabbed application. 4 tabbed windows. Tab1 (the 1st window) has a Navigation button. When I click it, it launches another window that plays music.

The music window opens, it works, and i have a button that closes it. When it closes, the tabbed windows appear again.

The problem is that this happens only once. The windows do not open or close again.

Here is the code from the tabbed view:

var backButton = Titanium.UI.createButtonBar({
    labels:['<<'],
    backgroundColor:'#336699',
    style:Titanium.UI.iPhone.SystemButtonStyle.BAR
    });
 
 
    backButton.addEventListener('click', function()
    {
    Ti.API.info('event button clicked')
    var eventWin = Ti.UI.createWindow({
        modal:false,  // this has to be FALSE!
        url:'windows/musicplayer.js',
            exitOnClose: false,
        fullscreen:false,
        title:'MusicWindow'
    });
    Ti.API.info('eventwin in app.js: ' + eventWin);
    eventWin.open();
    });
 
    win1.setLeftNavButton(backButton);
I was playing around with the exitOnClose - changing it from true to false, but that didn't help.

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images