1. #1
    Ext User
    Join Date
    Sep 2009
    Posts
    28
    Vote Rating
    0
    4myGod is on a distinguished road

      0  

    Default Ext.append

    Ext.append


    Ext.DomHelper.append('player-list', {tag: 'tr', cls: 'player', children: ({tag: 'td', cls: 'status ' + status}, {tag: 'td', cls: 'rank', html: '<img src=\''+ webRoot +'image/rank/'+ players[plyr].rank +'.png\' alt=\''+ players[plyr].rankName +'\'>'})
    });

    Obviously I am screwing this up pretty hardcore, however I am trying to add multiple children at once. Can someone please tell me the correct way?

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,784
    Vote Rating
    599
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    You specify arrays with [], not ().

    Code:
    Ext.DomHelper.append('player-list', {tag: 'tr', cls: 'player', children: [{tag: 'td', cls: 'status ' + status}, {tag: 'td', cls: 'rank', html: '<img src=\''+ webRoot +'image/rank/'+ players[plyr].rank +'.png\' alt=\''+ players[plyr].rankName +'\'>'}]
    });
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Sep 2009
    Posts
    28
    Vote Rating
    0
    4myGod is on a distinguished road

      0  

    Default


    alright thanks.

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..."