Results 1 to 4 of 4

Thread: combo values in IE6

  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2010
    Posts
    11

    Default combo values in IE6

    Hi, this is my code, it doesn't work in IE6 :
    Code:
    Ext.onReady(function() {
      
      
      
      var countries = [
                              [0, 'United']
                              ,[1, 'Germany']
                              ,[2, 'France']
                              ,[3, 'G-Britain']
                          ];
      
      MyWindowUi = Ext.extend(Ext.Window, {
      title: 'My Window',
      width: 400,
      height: 250,
      initComponent: function() {
          this.items = [
                  new Ext.FormPanel({
                     renderTo:document.body
                    ,width: 400
                    ,height: 300
                    ,style:'margin:16px'
                    ,bodyStyle:'padding:10px'
                    ,title:'Linked Combos'
                    ,defaults: {xtype:'combo'}
                    ,deferredRender: false
                    ,items:[
                          {
                            id: 'currencyComboId',
                            xtype:'combo',
                            editable: false,
                            anchor: '98%',
                            border: false,
                            store: new Ext.data.SimpleStore({
                             fields:['value', 'name']
                            ,data:countries
                            }),
                            value: 1,
                            valueField:'value',
                            displayField:'name',
                            typeAhead: true,
                            mode: 'local',
                            triggerAction: 'all'
                        }
                          
                        ]
                })
              
          ];
          MyWindowUi.superclass.initComponent.call(this);
      }
      });
       
      win = new  MyWindowUi();
      
      win.show();
       
    });
    please any help ?

    thinks !

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    first issue:

    mixing leading commas with trailing commas, BAD IDEA!

    second issue:

    Posting that something doesn't work does not help us help you.

    third issue:

    Please post code within closing CODE tags.

    fourth issue:

    Please post help requests in the proper forum. Moving to Ext help.

  3. #3
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    your code beautified:
    Code:
    Ext.onReady(function () {
    
        var countries = [
            [0, 'United'],
            [1, 'Germany'],
            [2, 'France'],
            [3, 'G-Britain']
        ];
    
        MyWindowUi = Ext.extend(Ext.Window, {
            title: 'My Window',
            width: 400,
            height: 250,
            initComponent: function () {
                this.items = [
                new Ext.FormPanel({
                    renderTo: document.body,
                    width: 400,
                    height: 300,
                    style: 'margin:16px',
                    bodyStyle: 'padding:10px',
                    title: 'Linked Combos',
                    defaults: {
                        xtype: 'combo'
                    },
                    deferredRender: false,
                    items: [{
                        id: 'currencyComboId',
                        xtype: 'combo',
                        editable: false,
                        anchor: '98%',
                        border: false,
                        store: new Ext.data.SimpleStore({
                            fields: ['value', 'name'],
                            data: countries
                        }),
                        value: 1,
                        valueField: 'value',
                        displayField: 'name',
                        typeAhead: true,
                        mode: 'local',
                        triggerAction: 'all'
                    }
    
                    ]
                })
    
                ];
                MyWindowUi.superclass.initComponent.call(this);
            }
        });
    
        win = new MyWindowUi();
    
        win.show();
    
    });

  4. #4
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    no need to set renderTo on items that are children of containers, panels, windows, etc.

Similar Threads

  1. Combobox values not selectable in IE6
    By javabee in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 24 Nov 2010, 3:37 AM
  2. Replies: 1
    Last Post: 13 Jul 2010, 6:01 AM
  3. Alpha3: Does Combo allow new values?
    By jeffiel in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 25 Jun 2009, 12:11 AM
  4. [2.0a] Combo Box Values
    By jakehawk in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 10 Oct 2007, 6:54 AM
  5. [2.0a] Combo Box Values
    By jakehawk in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 9 Oct 2007, 10:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •