1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Rome
    Posts
    14
    Vote Rating
    0
    kinghomer is on a distinguished road

      0  

    Default Maybe a bug! ToggleField doesn't work in X-HTML Document

    Maybe a bug! ToggleField doesn't work in X-HTML Document


    Hi guys, i'm trying to set an 'xtype' togglefield in a FormPanel but it doesn't work. Debugger says

    'Uncaught Error: INVALID_STATE_ERR: DOM Exception 11'
    I don't understand why, if i change from xhtml document to html5 document, it works !!!

    is it a bug ??

    XTML Code:
    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <
    html xmlns="http://www.w3.org/1999/xhtml">
    <
    head>
    <
    title>SVG</title>
    <
    meta charset="utf-8" />

    <
    link href="sencha-touch.css" rel="stylesheet" type="text/css" />
    <
    script src="sencha-touch-debug.js" type="text/javascript"></script>
    <script src="applicationToggle.js" type="text/javascript"></script>
    </head>

    <body>
    </body>
    </html> 
    Here applicationToggle.js:

    PHP Code:
    Ext.ns('DynamicForms'); // register our namespace

    DynamicForms.MyForm Ext.extend(Ext.form.FormPanel, {

    initComponent: function(){

    Ext.apply(this, {
        
    floatingtrue,
            
    width350,
            
    height370,
            
    centeredtrue,
            
    modaltrue,
            
    hideOnMaskTapfalse,
        
    items: [{
        
    xtype'selectfield',
        
    options: [{
        
    text'Test'value'Test'
        
    }, {
        
    text'Test2'value'Test2'
            
    }, {
        
    text'Test3'value'Test3'
        
    }]
        }, {
        
    xtype'togglefield',
        
    label'Toggle Test',
        
    disabledtrue
        
    }]
    });
    DynamicForms.MyForm.superclass.initComponent.call(this);
    }

    }); 

  2. #2
    Sencha - Sencha Touch Dev Team Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Vote Rating
    14
    Jacky Nguyen has a spectacular aura about Jacky Nguyen has a spectacular aura about

      0  

    Default


    There are differences of DOM API implementations in different document modes, and we don't support non-HTML5 doctype at the moment.
    Sencha Touch Lead Architect

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