Titanium Community Questions & Answer Archive

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

How to add one tabbed bar as back button.

Hello,

In my app. I am using all web views and that ar opened from app.js in win1 window but I want to add one tabbed bar as a "back" button how can I add it and how it can work as back button.

— asked April 24th 2010 by vikas khairnar
  • backbutton
0 Comments

1 Answer

  • Hey Vikas,

    The back button is automatically added when you create a child window, it sounds like in your case you'd have to add that manually as well as manually keep track of which window is visible right now and which one to go to when a back button is tapped.

    What I would try is putting a variable in app.js to keep track of which window is being shown right now, and have an array of the URL's that app uses so you'd be able to figure out which one to open based on where the user is right now. Then manually create a button object with the title "back", and and add an event listener to that button to call a function to sort out were to go back to, then open that URL.

    Hope that helps.

    — answered April 24th 2010 by Dan Giulvezan
    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.