1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    18
    Vote Rating
    0
    pasblin is on a distinguished road

      0  

    Talking add success property or callback to my own function

    add success property or callback to my own function


    how can i add a property or callback to my own function?? thx

  2. #2
    Ext User
    Join Date
    Aug 2009
    Location
    Italy
    Posts
    39
    Vote Rating
    0
    Estefan is on a distinguished road

      0  

    Default


    create the callback object:

    // the type of the object depends on the return type oh the method implemented on the server side
    AsyncCallback<Boolean> callback= new AsyncCallback<Boolean>() {

    public void onFailure(Throwable caught) {
    //communication failed
    MessageBox.alert("failure", "", null);
    }

    public void onSuccess(Boolean result) {
    if (result == true) {
    MessageBox.alert("Success", "", null);

    }
    }
    };

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