Titanium Community Questions & Answer Archive

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

navGroup Using External JS with Multiple Levels

Hey Guys,

Wanted to first thanks for all the help. The community really does a great job with answering questions and helping out. Hopefully I can do the same down the road.

There is a great tutorial about how to create and use a navGroup and I had a couple questions that I wondering if anyone knew the answer to.

http://developer.appcelerator.com/blog/2010/06/how-to-create-an-iphone-navigation-group.html

  1. Say I made my page "first" go to a url. How can I make that page go to a different external page, but stay within the tab group. In theory:
  • app.js opens "external_one.js" with a navGroup/titleBar to a page containing a tableView.

  • A tableView button in "external_one.js" goes to url "external_two.js" that STILL contains the navGroup.

  • A tableView button in "external_two.js" goes to url "external_three.js" that STILL contains the navGroup.

  • The navGroup in "external_three.js" has the ability to press "back" twice to get back to the original "external_1".

Does that make sense?

  1. Would it work/is there a way to do something like win.addCurrentNavGroup();? Not sure how that would work…

Thanks!,

Mike

— asked November 2nd 2010 by Michael Fogg
  • external
  • js
  • multiple
  • navgroup
0 Comments

1 Answer

  • Adding windows/pages to the NavGroup are simply done by

    navGroup.open(aWindow);
    

    that will push the window onto the navGroup stack, not sure if that answers the question… it is kinda hard to follow

    — answered November 9th 2010 by Aaron Saunders
    permalink
    1 Comment
    • Can you explain better your vision, Aaron ?
      I didn't understood…

      — commented March 13th 2011 by Thiago Holanda
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.