Forum /
Ext JS Community Forums 3.x /
Ext 3.x: Help & Discussion /
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
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);
}
}
};
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us