Threaded View

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2009
    Birmingham, AL
    Vote Rating
    re_buchanan is on a distinguished road


    Default Inter-component Communication and App Design

    Inter-component Communication and App Design

    I've been working seriously on learning Ext JS for about a week now and it's mostly coming together pretty well for me. But I'm a bit stuck on figuring out how to pass events around (or, perhaps, how Ext passes them about); in other words, how to do inter-component communication. I've read both Writing a Big Application in Ext (Parts 1 & 2) and I've studied Saki's Ext Example. So far as I can determine, the key bits in his example are as follows:
    tpl:new Ext.XTemplate('<tpl for="links"><a class="examplelink" href="{href}">{text}</a></tpl>')
    (add a custom classname to the items whose events I want to capture so that they can be "identified" later)

                ,render:function() {
    (I really have no understanding of exactly what this is doing, but it seems to be the key to getting the 'linkClick' events out to the parent)

    ,onLinkClick:function(e, t) {
            var title = t.innerHTML;
            var tab = this.tabPanel.items.find(function(i){return i.title === title;});
            if(!tab) {
                tab = this.tabPanel.add({
        } // eo function onLinkClick
    (this is, obviously, what is ultimately handling the events)

    So here are my questions:

    1. What exactly is happenning in the 2nd snippet above?
    2. Is this the only way to do interprocess communication?
    3. Is this the best way to do interprocess communication?
    4. Are there any other Examples, FAQs, Posts, etc. where I might find more info on this topic?



    Last edited by re_buchanan; 20 Feb 2009 at 4:37 AM. Reason: I got logged out before I was done

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi