1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    89
    Vote Rating
    0
    kimu is on a distinguished road

      0  

    Default How to Ext.DomHelper.append ?

    How to Ext.DomHelper.append ?


    I want to use Ext.DomHelper.append, but I'm not able to use it. This is my code:
    Code:
    rules = Ext.util.JSON.decode(o.responseText);
    var ruleSelect = document.getElementById('validation-rule')
    	for(var i = 0, limit = rules.length; i < limit; i++){
    		opt = document.createElement('option');
    		opt.value = rules[i];
    		opt.innerHTML = rules[i];
    		ruleSelect.appendChild(opt);						
    	}
    Everything goes well with this code. If I try to do the same with Ext.DomHelper.append I obtain nothing. This is my code, what is wrong with this?:
    Code:
    rules = Ext.util.JSON.decode(o.responseText);
    	for(var i = 0, limit = rules.length; i < limit; i++){
    		Ext.DomHelper.append('validation-rule',{
    			tag:'option', value:rules[i], html:rules[i]
    		});
    	}
    Thanks for your help

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    On IE? IE's addition of options elements is flaky. McSoft eh? Who'd a thunk it?

    Try adding

    Ext.DomHelper.useDom = true;

    before your call to append the option.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    89
    Vote Rating
    0
    kimu is on a distinguished road

      0  

    Default


    Thanks Animal,
    with

    Ext.DomHelper.useDom = true

    works perfectly also on IE

    Bye

Similar Threads

  1. DOMHelper in IE?
    By kjordan in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 29 Jan 2007, 7:40 AM
  2. DomHelper
    By INeedADip in forum Ext 1.x: Bugs
    Replies: 6
    Last Post: 2 Jan 2007, 6:08 AM
  3. Replies: 8
    Last Post: 23 Dec 2006, 2:19 PM
  4. DomHelper
    By INeedADip in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 18 Oct 2006, 2:25 AM

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