how to pass on data to from one window to other ?
I tried this code but it does not works.
In app.js, I could define a function and a property.
var a = 1;
function b()
{
return "hello";
}
Creating a new window by this:
var w = Titanium.UI.createWindow({
url:'foo.js'
});
assigning a and b to a new window reference w.
w.a = a;
w.b = b;
But when I access a and b in w , it shows undefined for both.
How will I pass on data then ?
2 Answers
-
You can
- Send and receive custom events between Windows with parameters.
- Store and retrieve app parameters like Setint or GetInt, etc.
Check them out at the api reference.
-