Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    264
    Vote Rating
    0
    Stephan123 is on a distinguished road

      0  

    Default rebuild the window

    rebuild the window


    Hello !

    I have extended the window object.
    When the first time the script load the window do work.

    Code:
        Ext.onReady(function() {
        Ext.BLANK_IMAGE_URL = '/lib/extjs3/resources/images/default/s.gif';
        Ext.QuickTips.init();
        
        var loginverwaltung = new Ext.Window({
            title: 'Test',
            width: 400,
            height: 400
        });
        
        loginverwaltung.show();
        
    });
    When i call the 'command loginverwaltung.show();' in the console from the firebug
    i became the message:
    'ReferenceError: loginverwaltung is not defined'

    How can i recall the window ?

    Your sincerly

    Stephan

  2. #2
    Sencha User BitPoet's Avatar
    Join Date
    Sep 2008
    Location
    Bavaria
    Posts
    277
    Vote Rating
    1
    BitPoet is on a distinguished road

      0  

    Default


    This is a scope issue, you should read up on scoping of names in javascript, understanding that will spare you a lot of headache. In this case, the variable 'loginverwaltung' is local to the scope of the function passed to Ext.onReady and can not be accessed from outside. To circumvent that limitation without cluttering the global namespace, give your window an explicit id and call
    Code:
      Ext.getCmp('id-of-your-window').show();

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Posts
    264
    Vote Rating
    0
    Stephan123 is on a distinguished road

      0  

    Default recall window

    recall window


    Hello !

    I have change the script

    Code:
    Ext.onReady(function() {
        Ext.BLANK_IMAGE_URL = '/lib/extjs3/resources/images/default/s.gif';
        Ext.QuickTips.init();
        
        loginverwaltung = new Ext.Window({
            title: 'Test',
            width: 400,
            height: 400,
            id: 'fenster'
        });
        
        loginverwaltung.show();
        
    });
    When i type in the firebug console

    Code:
    var wert = Ext.getCmp('fenster');
    wert.show();
    i became the message: 'wert is undefined'

    Your sincerly

    Stephan

  4. #4
    Sencha User
    Join Date
    Feb 2009
    Posts
    264
    Vote Rating
    0
    Stephan123 is on a distinguished road

      0  

    Default Test 2

    Test 2


    Hello !

    I have build a new Test 2

    Code:
     var kFenster = function(){
    
        return {
          
          bauFenster: new Ext.Window({
             title: 'Fenster',
             id: 'fenster',
             width: 400,
             height: 400
          }) 
         
        } // Ende return
    } // Ende Klasse
    
    var oFenster = new kFenster();
    oFenster.baueFenster.show();
    It works fine.
    I close the window !

    Now when i type in the firebug console

    Code:
    var oFenster = new kFenster();
    oFenster.baueFenster.show();
    It works !
    I think the problem from Test 1 is.
    With window.close(); the window object is destroy.

    Your sincerly

    Stephan

  5. #5
    Sencha User BitPoet's Avatar
    Join Date
    Sep 2008
    Location
    Bavaria
    Posts
    277
    Vote Rating
    1
    BitPoet is on a distinguished road

      0  

    Default


    Or you configure your window with
    Code:
      closeAction: 'hide'
    to reuse the existing instance and make Ext.getCmp work.

    Viele Grüße
    -Chris

Thread Participants: 1