Referring between different windows in different files.

You must Login before you can answer or comment on any questions.

Hi guys, I've displayed some UI controls and applied event listeners on them in some file a.js for example, now I want to handle the event in some external file b.js and refer the event to b.js like this:-

//file a.js
if(e.source.name=='btn1'
    {
        //Refer to btn1Event in b.js where **variables of a.js should be accessible**
    }
    else if (e.source.name=='lbl1'
    {
        //Refer to lbl1Event b.js where variables of a.js should be accessible
    }
The important point here is that variables in a.js can be used in b.js. The event will open a new window and on pressing back button it should navigate to previous (parent) window. What is the best and efficient way to do this???

1 Answer

Hi Muhammad

I just responded to this on the other question you have.

But explaining application architecture and event handling and bubbling is really outside the scope of a Q & A.

Instead can I point you in the direction of the Docs, CallBacks and Event Coupling

Also for custom navigation have a look at this TiCustomMenu

Hope this helps

T.

Your Answer

Think you can help? Login to answer this question!