Titanium Community Questions & Answer Archive

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

Update Windows in TabGroup

Hi,

I'm creating an app that uses a tabgroup for automatic navigation. However, when I open up a subwindow, and the back button in the top left hand corner appears, how do I update the original window, if that back button is clicked? Thanks for your help, and please let me know if I'm being clear enough.

— asked November 4th 2010 by Connor Zwick
  • tabgroup
  • update
  • window
1 Comment
  • As there isn't really much to go on in this question, I can only hazard a guess. However, you could use a custom event to change values of objects in a different context (such as another window).
    See this post.

    Although it may not be relevant to you, custom events attached to views (including windows) do not currently work on android, so you must use a global event by listening to Titanium.App.addEventListener. See this lighthouse ticket for more info on this android-only issue.

    — commented November 5th 2010 by Paul Dowsett

3 Answers

  • Please state the mobile platform you are using.

    — answered November 4th 2010 by Paul Dowsett
    permalink
    0 Comments
  • iOS 4…sorry

    — answered November 4th 2010 by Connor Zwick
    permalink
    0 Comments
  • As there isn't really much to go on in this question, I can only hazard a guess. However, you could use a custom event to change values of objects in a different context (such as another window). See this post.

    Although it may not be relevant to you, custom events attached to views (including windows) do not currently work on android, so you must use a global event by listening to Titanium.App.addEventListener. See this lighthouse ticket for more info on this android-only issue.

    Hal

    PS Sorry for this duplicate - I just realised this is a possible answer, rather than a comment. :-/

    — answered November 5th 2010 by Paul Dowsett
    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.