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.
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 postWe have 2 questions:
is there an other way to pass data/functions to new windows without making it global
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.
-
Sorry Martin that does not contain what I need.
Ti.UI.currentWindow.CONTROLNAME just returns undefined.