Titanium Community Questions & Answer Archive

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

Getting a controls value

Hi, I want to get a controls value from within a function and therefore the variable I used to create it is out of scope.

I don't want to declare all my controls as global.

window.GetControlByID type of method is what I am after.

Thanks.

— asked March 23rd 2010 by Darren Stuart
  • mobile
  • ui
0 Comments

2 Answers

  • Hello Titanium community!

    we are trying to develop an App which should run on both iPhone AND Android.
    But, unfortunatelly there are huge differences in supported features on this both plattforms.

    Executing JavaScript in seperate scopes is great, but there should be a way of communicating between this scopes/windows. Passing data AND functions to new windows is only working for iPhone, like already discussed
    in another post

    We have 2 questions:

    1. is there an other way to pass data/functions to new windows without making it global

    2. is it scheduled to implement this data passing feature like it is done (just perfectly) for iPhone os?

    IBTW:
    According to the API doc
    this feature should already work for both platforms!

    Thank you in advance.

    — answered March 24th 2010 by Martin Lasak
    permalink
    0 Comments
  • Sorry Martin that does not contain what I need.

    Ti.UI.currentWindow.CONTROLNAME just returns undefined.

    — answered March 24th 2010 by Darren Stuart
    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.