Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

window is freezing

Hello,

my app should be opened, when you've logged in. That works and also the next window is shown, but then you can't use the TabBar.

These are some party of my source. When you want to see more, please feel free to post it…

app.js

        if(json[0]==1) {
            var home = Titanium.UI.createWindow({
                url:'create.js'
            });
            home.open();
            win.close();

create.js

Titanium.UI.setBackgroundColor('#fff');
var tabGroup = Titanium.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({
    url:'home.js',
    title:'Home',
    barColor:'#ABABAB'
});
var tab1 = Titanium.UI.createTab({
    icon:'KS_nav_views.png',
    title:'Home',
    window:win1
});

var win2 = Titanium.UI.createWindow({
    url:'profil.js',
    title:'Profil',
    barColor:'#ABABAB'
});
var tab2 = Titanium.UI.createTab({
    icon:'KS_nav_ui.png',
    title:'Profil',
    window:win2
});

var win3 = Titanium.UI.createWindow({
    url:'friends.js',
    title:'Freunde',
    barColor:'#ABABAB'
});
var tab3 = Titanium.UI.createTab({
    icon:'KS_nav_ui.png',
    title:'Freunde',
    window:win3
});

var win4 = Titanium.UI.createWindow({
    url:'post.js',
    title:'Nachrichten',
    barColor:'#ABABAB'
});
var tab4 = Titanium.UI.createTab({
    icon:'KS_nav_ui.png',
    title:'Nachrichten',
    window:win4
});

var win5 = Titanium.UI.createWindow({
    url:'information.js',
    title:'Informationen',
    barColor:'#ABABAB'
});
var tab5 = Titanium.UI.createTab({
    icon:'KS_nav_ui.png',
    title:'Infos',
    window:win5
});

tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.addTab(tab3);
tabGroup.addTab(tab4);
tabGroup.addTab(tab5);

tabGroup.open();

The home.js returns some values. So it is opened.

Thanks in advance!

— asked May 14th 2010 by Claus Moritz Gräf
  • iphone
  • tabs
0 Comments

1 Answer

  • Same issue…been killing me…Need some quick help. Will buy beer.

    — answered August 23rd 2012 by Karma Koder
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.