1. #1
    Ext User makcs's Avatar
    Join Date
    Mar 2008
    Posts
    7
    Vote Rating
    0
    makcs is on a distinguished road

      0  

    Question Scope for Direct handler

    Scope for Direct handler


    Help me please. I need the scope in direct handler function

    Simple, i requested server function. How i can send my scope to it?

    TestAction.doEcho( message, function(){
    console.log(this);
    });

    if i make so TestAction.doEcho( message, function(){ ... }.call(this)); request error...

    Bad style handler call by id
    TestAction.doEcho( message, function(){
    var myCmp = Ext.getCmp( 'myCmpID' );
    });


    Sorry for my bad english...
    A posse ad esse non válet consequentia

  2. #2
    Ext User makcs's Avatar
    Join Date
    Mar 2008
    Posts
    7
    Vote Rating
    0
    makcs is on a distinguished road

      0  

    Default



    TestAction.doEcho( 'Hello world!', _directHandler.createDelegate(this) );
    A posse ad esse non válet consequentia

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Code:
    TestAction.doEcho(message, function(){
        console.log(this);
    }, this);

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar