1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    32
    Vote Rating
    0
    dn2965 is on a distinguished road

      0  

    Default Unanswered: to press "Esc" key to close Ext.Window.window , I can't reopen it again ???

    Unanswered: to press "Esc" key to close Ext.Window.window , I can't reopen it again ???


    Hi there:

    I am using Ext-js 4.1.1 , I use a grid and it contains some of fields with handler which can open a window , But When I close the window by pressing the "ESC" button the console will output the error message and not longer to use my page, but pressing the OK,Cancel button everything is fine.


    I have seen some of thread that talk about a similar problem ,issue , but what is the correct way to fix this problem , this is the V4.1 !!!!




    PHP Code:
    TypeErrorel is null

    el
    .addCls.apply(elarguments);

    ext-all-dev.js(68365 行)

    TypeError
    el is null 




    PHP Code:
    function view_taskInfoWindow(record){
        if( !
    App.win_taskInfo ){
            var 
    required '<span style="color:red;font-weight:bold" data-qtip="Required">*</span>';
            
            
    App.win_taskInfo = new Ext.Window({
                
    title'task',
                
    layout'form',
                
    frametrue,
                
    bodyPadding'5 5 0',
                
    width650,
                
    myRecord:record,
                
    height500,
                
    defaultType'textfield',
                
    fieldDefaults: {
                    
    msgTarget'side',
                    
    labelWidth75
                
    },
                
    modaltrue,
                
    items: [
                            {
                                
    xtype'textfield',
                                
    fieldLabel'Task Name',
                                
    name'taskName',
                                
    allowBlankfalse,
                                
    valuerecord.data['Name'],
                                
    afterLabelTextTplrequired
                            
    },
                            {
                                
    xtype'label',
                                
    text'Role Name / Owner Name'
                            
    },
                            {
                                
    xtype'label',
                                
    name'roleName',
                                
    text:record.data['RoleName']
                            },
                            {
                                
    xtype'label',
                                
    text'  '
                            
    },
                            {
                                
    xtype'label',
                                
    textrecord.data['Owner'],
                                
    name'ownerName'
                            
    }{
                                
    xtype'timefield',
                                
    fieldLabel'Time',
                                
    name'time',
                                
    minValue'8:00am',
                                
    maxValue'6:00pm'
                            
    }*/
                ],
                
    buttons: [{
                    
    text'Ok',
                    
    scopethis,
                    
    handler: function() {

                        
    App.win_taskInfo.hide();
                    }
                }, {
                    
    text'Cancel',
                    
    scopethis,
                    
    handler: function() {
                        
    App.win_taskInfo.hide();
                    }
                }
                ]
            });
        }
        
        
    App.win_taskInfo.myRecord=record;
        
    App.win_taskInfo.show();


  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,814
    Answers
    453
    Vote Rating
    607
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

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