1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    3
    Vote Rating
    0
    colin.jones is on a distinguished road

      0  

    Default Direct Method not firing callback.

    Direct Method not firing callback.


    I am making extensive use of Direct for both stores and arbitary function calls. I have noticed on occasion the callback functions of ad-hoc calls are not fired upon successful Direct-server interaction.

    Unfortunately I do not have a cast iron fault-case. But have pin pointed the problem to the callback definition. After inspection of the transactions within the Ext.Direct singleton, I have noted that in some cases the cb property of the transaction is undefined. Furthermore if I manually set it after calling the function, it works!

    PHP Code:
    users.addUser({
      
    username:'Johnny',
      
    forename:'Johnny',
      
    surname:'Vegas'
    },console.info);
    // In some circumstances the callback is not registered, although the transaction
    // is conducted successfully

    Ext.Direct.getTransaction(Ext.Direct.TID).cb console.info;
    // this manual registration following the Direct call successfully makes
    // the callback fire, when the transaction completes... 
    I'd be grateful if anyone could elaborate further, direct further debug or alert if the work-around is a cardinal sin.

    Thanks, CJ

  2. #2

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