1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    2
    Vote Rating
    0
    acharry is on a distinguished road

      0  

    Default Issues upgrading from version 4.0.7 to 4.1.1

    Issues upgrading from version 4.0.7 to 4.1.1


    Good Afternoon!

    I am trying to upgrade from version 4.0.7 to 4.1.1 (downloaded as a free 45 days trial) in order to test the version 4.1 in the application we have running at the moment and see how many changes we may need to do before the formal upgrade, the only step I did was pointing my jsp file to the new files in the head of the page as follows:

    Code:
    <link rel="stylesheet" href="3rdParty/ext-4.1.1a/resources/css/ext-all.css"/>
    
    <script type="text/javascript" charset="utf-8" src="3rdParty/ext-4.1.1a/ext-all-debug.js"></script>
    And in my jsp page I am doing something very simple, just creating a button, I used this code:


    Code:
     <body>
    
    
            <script type="text/javascript">
                
                Ext.create('Ext.Button', {
                    text: 'Test window',
                    width: 75,
                    renderTo:  Ext.getBody(),
                    handler: function() {
                        alert("the button worked"");
                    }
                });
    </script> 
    </body>
    but nothing is being displayed when I run this page, when I use the development tool of google chrome, the console is displaying me this message:

    Uncaught TypeError: Cannot call method 'createChild' of undefined

    When I debugged the code, the error appears in the file ext-all-debug.js:20687

    Code:
    getStyleProxy: function(cls) {
            var result = this.styleProxyEl || (Ext.AbstractComponent.prototype.styleProxyEl = Ext.resetElement.createChild({
    
    
                    style: {
                        position: 'absolute',
                        top: '-10000px'
                    }
                }, null, true));
    
    
            result.className = cls;
            return result;
        },
    What step am I missing?, I am pretty new in extjs and as far as I understand, the upgrade from version 4.0.7 to 4.1.1 should not involve many steps different to some different ways of writing the code, can somebody help me please?

    Many thanks in advance!

  2. #2
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    311
    Vote Rating
    52
    droessner is a jewel in the rough droessner is a jewel in the rough droessner is a jewel in the rough

      0  

    Default


    Try wrapping your create with Ext.onReady to make sure that the DOM is ready before creating the button.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    2
    Vote Rating
    0
    acharry is on a distinguished road

      0  

    Default


    Thank you very much!! That was the problem

Thread Participants: 1

Tags for this Thread

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