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
- 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?
- Would it work/is there a way to do something like win.addCurrentNavGroup();? Not sure how that would work…
Thanks!,
Mike
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