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 8903007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:45:34+00:00 2026-06-15T01:45:34+00:00

So I have a call in one window to a window.open() for a different

  • 0

So I have a call in one window to a window.open() for a different window. This happens, of course, on a button click.

Both windows are modal = true

However, what i’d like is that when the back button on either window is pressed, I jump back to my root tabGroup.

I’d also like when i close either window I jump back to the root tabgroup.

This isn’t, of course, a problem with the first window, but the second window I spawn it is… so what i did was

second.open();
first.close();

sadly, on my device this leaves a “pause” with the “unfocussed” rootTabgroup showing for a half second or so… it seems to be that before the second window opens, Titanium closes the first window… which causes the view to drop back tot he unfocussed tabGroup.

This is stupid, and ugly. I can (and have) skirted the problem just be removing the view i was using and adding a new view… but out of interest, is there a way to fully load a window and then close the current one without the amateur hour hysterics?

  • 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-06-15T01:45:36+00:00Added an answer on June 15, 2026 at 1:45 am

    Wait until the new window opens before closing the old window.

    win2.addEventListener('open', function() { win1.close(); });
    win2.open();
    

    Or:

    win2.open();
    setTimeout(function() { win1.close(); }, 1000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have open child window when click on button.In this window I have save
I have two ajax calls. Both are sync. Both call methods from one controller.
I have two pages, the parent and from this page I am using: window.open('OrderDetailsFull.aspx?ObjectID='
Using JavaScript i have the refresh button in my parent window, when i click
I am doing a batch scripting assignment where I have to call one script
I have to call more than one webservice in one method each webservice is
I have two partial view and I want to call one of them in
I have made a batch file that call another one program.bat , the first
We have several Flash objects included in our project. We call each one a
Starting to learn Canvas and have two classes so far (main one to call

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.