Titanium Community Questions & Answer Archive

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

From Tab 1, Open Page In Tab 2 Without Being Fullscreen

From Tab 1, Open Page In Tab 2 Without Being Fullscreen, and change active tab to tab 2.

I'm having trouble doing this. Please help?

— asked May 23rd 2010 by Neal Kraus
  • activetab
0 Comments

1 Answer

  • You can consider to use one of the samples in our github repo. However, a basic structure of how to switch tab and open windows can be accomplished as follows (assuming you have win1 open and you are operating on a tableview row event listener -

    tableView.addEventListener('click', function(e) {
        var winFile = require('point to your js file to open window 2');
        var win2 = new winFile(e.rowData.viewId);
        win2.containingTab = win1.containingTab;
        win1.containingTab.open(win2);
    });
    
    — answered June 29th 2013 by Shak Hossain
    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.