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

  • Home
  • SEARCH
  • 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 4560254
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:54:18+00:00 2026-05-21T17:54:18+00:00

hey all, how to navigate/call other .js file after click event on button. once

  • 0

hey all,
how to navigate/call other .js file after click event on button. once it ciick it will goes to other window. osplease help me to solve this problem

thanks,

  • 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-21T17:54:18+00:00Added an answer on May 21, 2026 at 5:54 pm

    Please find below a quick sample, focused around iOS. There are a bunch more available in the Kitchen Sink example App available here:
    https://github.com/appcelerator/titanium_mobile/tree/master/demos/KitchenSink

    Steps:

    1) Create Titanium Mobile Project

    2) In the app.js file add the below

    var winPage1 = Ti.UI.createWindow({
        url:'page1.js', title:'Page 1'
    });
    
    winPage1.open();
    

    3) Add a file in the same directory as app.js called page1.js, then paste this in

    
    var win = Ti.UI.currentWindow;
    
    (function(){
        var b1 = Ti.UI.createButton({
            title : 'Press Me',
            left : 10, top : 100, right : 10, height : 40
        });
        b1.addEventListener('click', function(e) {
            var wPage = Ti.UI.createWindow({ 
                    title:'Test Page2',
                    backgroundColor:'yellow',
                    url:'page2.js'
            });
    
            wPage.open({modal:false});
        });
    
        win.add(b1);
    
    })();
    

    4) Add a file in the same directory as app.js called page2.js, then paste this in

    var win = Ti.UI.currentWindow;
    
    (function(){
        var b1 = Ti.UI.createButton({
            title : 'Press Me',
            left : 10, top : 100, right : 10, height : 40
        });
        b1.addEventListener('click', function(e) {
            win.close();
        });
    
        win.add(b1);
    
    })();
    

    5) Run in Titanium Developer or Studio

    This should give you a running same showing how to open and close windows. Kitchen Sink (link above) has a ton more samples showing different ways to do this.

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

Sidebar

Related Questions

Hey all. I'm wondering how to implement a timeout event in the System.Windows.Forms.Webbrowser control?
Hey all. I'm reading from one sql-format file to another, and two bytes in
Hey I have an XML file and I would like to navigate to a
Hey all! I am trying to post a file over Http using Java 1.4.2.
Hey all i have an XML file that i am trying to loop though.
Hey all, I am setting up a PHP web app that will make use
Hey all i am new at C# and i am trying to call the
Hey all i've tried to add an other view it work properly but it
Hey all, I want to change a value in a table (in a mysql
Hey all. Is there a way to copy only a portion of a single

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.