Hi, I think that in the official Titanium documentation there is a not exact use of the term "execution context" and this causes (surely in my case) confusion. From Titanium point of view seems that execution context means "process within Javascript code runs, having its own global scope". You can verify that when in the documentation read that every window opened using url property creates its own execution context (with its own global scope). So an execution context is similar to the html web page that contains javascript code: every page of an internet site is like a single application and without using special tecniques (like cookies) those web pages can't share its variables. But this explanaition of execution context seems to be uncorrect (see, for example, this Is there anyone able to answer once and for all in a clear and simple way to these questions: 1) in which way execution context and scope differ? 2) if I create a new "execution context" using url property (I know it is a terrible idea but I wish to understand) I create a new global scope for that window so I have two independent "global scopes"? Also the new one lives for all the life of the app? 3) How can I create static variables and passing them between Alloy Windows? Thanks for the attention.
↧