IE complains about "style null"

  • Hi,

    From the ExtJS example "window/hello.html", I change the JS file in order to show the window directly (not by clicking the button)

    here's the new code for hello.js


    Ext.onReady(function(){

    var win = new Ext.Window({
    el:'hello-win',
    layout:'fit',
    width:500,
    height:300,
    closeAction:'hide',
    plain: true,

    items: new Ext.TabPanel({
    el: 'hello-tabs',
    autoTabs:true,
    activeTab:0,
    deferredRender:false,
    border:false
    }),

    buttons: [{
    text:'Submit',
    disabled:true
    },{
    text: 'Close',
    handler: function(){
    win.hide();
    }
    }]
    });

    win.show(this);
    }


    The windows appears correctly with FireFox, but it doesn't work under IE6. It complains about "style" that has NULL value, and doesn't show the window

    any idea?


  • try not using el. try using renderTo or applyTo or contentEl


  • I try this, but that doesn't change anything...


  • No "this". Read the docs on show.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about IE complains about "style null" , Please add it free.