Titanium Community Questions & Answer Archive

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

Adding page via navigationGroup results in blank page on iPhone

I'm still trying to implement this navigation structure in my app. I've got further with it with the help of Kevin's navigationGroup example, and using 'heavyweight' windows for the Android side of things.

To help other people out here's the code I have so far; it's easy to add this stuff to a new project so that you can have a play & see whether you can work out the issue.

Basically, the code below will work on Android, letting you use the back button to navigate back to the main menu after navigating down a path. But on the iPhone the main menu appears but pressing down to the next level gives you a navigation bar with a blank page underneath.

The issue may be related to this one that Kevin has just confirmed is a bug, but the workaround doesn't work for the code I have here.

— asked June 23rd 2010 by Matt Collinge
  • android
  • blank
  • iphone
  • navigation
  • navigationgroup
  • window
0 Comments

2 Answers

  • I think including a javascript file for every click is going to be the wrong approach. What I would do is include a script once that has a function that will build and return a "lightweight" window with the contents you'd like for it to have.

    — answered June 24th 2010 by Kevin Whinnery
    permalink
    1 Comment
    • Ah, okay. I'm trying to create this kind of navigation structure with each 'path' being built in a modular way.. almost like bolt-on features stored in their own JS files.

      I had trouble with lightweight windows on Android which ended up closing the whole app, so that's why I used this approach.

      — commented June 25th 2010 by Matt Collinge
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.