1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    10
    Vote Rating
    0
    695w is on a distinguished road

      0  

    Red face Unanswered: mistake in Ext.Template?

    Unanswered: mistake in Ext.Template?


    1. the method append does not work in ie when i append a "option" tag to a "select" tag
    append( Mixed el, Object/Array values, [Boolean returnElement] )
    var tpl=new Ext.Template('<option value="{value}"> {text}</option>');
    tpl.append("the select tag id",{value:'a',text:'b'});
    2.sometime the template created by method Template.from does not work
    eg:
    html:
    <div id="target_el">
    </div>
    <div style="display:none">
    <div id='tpl'> <a href="{href}" title="{title}"> {text}</a></div>
    </div>
    javascript:
    var str='<a href="{href}" title="{title}"> {text}</a>';
    var tpl_=new Template(str);
    var tpl =Ext.Template.from('tpl');
    tpl_.append("target_el",{href:'a.jsp',title:'test',text:'aaaaa'});
    tpl.append("target_el",{href:'a.jsp',title:'test',text:'aaaaa'});

    result:
    <div id="target_el">
    <a href="a.jsp" title="test"> aaaaa</a>
    <a href="{href}" title="test"> aaaaa</a>
    </div>
    forgive me and my poor english.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Answers
    1
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    1. IE doesn't support adding select options through DOM manipulation (you'll have to create Option instances and add() them to the options property, see here).

    2. from() only works if your template doesn't contain text that gets corrupted by the browser. It's recommended to use a TEXTAREA as the root element, because browsers don't corrupt a TEXTAREA value.

  3. #3
    Ext User
    Join Date
    Jul 2008
    Posts
    10
    Vote Rating
    0
    695w is on a distinguished road

      0  

    Default


    thank you!

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