Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6720727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:14:47+00:00 2026-05-26T09:14:47+00:00

I think I may be applying too much of my normal context (web app

  • 0

I think I may be applying too much of my normal context (web app dev) to a new mobile project using Titanium. I have a home screen that contains a few buttons. I need each button to open a new window with completely new content. In my head, I just assumed that windows would work like requests or pages in that creating and opening a new window would entirely replace the existing content with the new. That doesn’t seem to be the case (or I’m doing something horribly, horribly wrong). On my home screen, here’s the event handler for one button:

btn_er_app.addEventListener( 'click', function( e ) {
    var win = Ti.UI.createWindow({
        bottom: 0,
        title: 'Next "Page"',
        top: 0,
        url: 'next_page.js',
    });
    win.open({ animated: true });
});

My next_page.js page looks like this (snippet):

var win = Ti.UI.currentWindow;
win.layout = 'vertical';

var header = Ti.UI.createView({
    backgroundColor: '#f00', 
    height: 60,
    top: 0, 
});
win.add( header );

var body = Ti.UI.createView({
    backgroundColor:'#000',
    backgroundImage: '/images/body.png',
});
var label = Ti.UI.createLabel({
    text: 'Page Bits Go Here',
    textAlign: 'center',
});
body.add( label );

win.add( body );

What I’m finding is that the home screen content is still visible. The red header block shows up, but not the body view. I’ve tried setting properties: height: '100%', bottom: 0, height: 'auto' and even setting the new window’s fullscreen value to true, but nothing works.

First, how does “linking” work in the mobile space? I really think that my entire thought process about this needs to be realigned and, second, what do I need to do to make my new window completely obscure the underlying home screen window?

Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:14:47+00:00Added an answer on May 26, 2026 at 9:14 am

    You should not replace the window, but actually create a new one, and let it open.

    Depending on what you are trying to achieve you should probably create a modal window.

    Here’s how:

    var newWin = Ti.UI.createWindow({
        modal: true,
        title: 'new Window',
        navBarHidden: false
    });
    
    // adding a button to close the window again:
    
    var button = Ti.UI.createButton({
        title: 'Close'
    });
    
    button.addEventListener('click',function(){
        newWin.close();
        newWin.hide();
    });
    
    win.leftNavButton = button;
    
    newWin.open();
    

    With this window you can do all kind of stuff, and add your views etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think we may have trouble with our existing project. For some reasons we
I think I may be way in over my head here... I'm using a
I am looking at some code in our app that I think may be
I've found what I think may be a bug with Ivar and Objective-C runtime.
You may think this question is like this question asked on StackOverflow earlier. But
I think I may have a misunderstanding of <xsl:variable\> and <xsl:value-of\> so perhaps someone
I think I may have accidently disabled stylecop in my Visual Studio 2008 enviroment.
I think I may be a bit confused on the syntax of the Moq
I think I may have used a repeater when I should have used something
I think I may misunderstand why the with command is used. But can any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.