Thursday, January 8, 2009
Success Handler Scope on Form POST
I am trying:
buttons: [{
text: 'Login',
handler: function() {
if (loginForm.getForm().isValid()){
loginForm.getForm().submit({
url:'/extPublicAdapter/extAdapter.lf?request=login',
success: this.loginResult,
failure: this.loginFailure,
scope: this,
});
}
}
}]
I don't get any error, but also my log() in loginResult() and/or loginFailure() never gets run. I am using firebug and see the response from the server but nothing happens. What am I missing?
buttons: [{
text: 'Login',
scope:this, //or explicitly: MyApp
handler: function() {
if (loginForm.getForm().isValid()){
loginForm.getForm().submit({
url:'/extPublicAdapter/extAdapter.lf?request=login',
success: this.loginResult,
failure: this.loginFailure,
scope: this,
});
}
}
}]
#If you have any other info about this subject , Please add it free.# |