PDA

View Full Version : Ext4.1.0 Ext.MessageBox doesn't show correct



liyf.008
21 May 2012, 8:24 AM
if server returns an error, MessageBox in failure function doesn't show, because it always be masked by the Window which contains the formpanel. This is caused by the config waitTitle and waitMsg in the submit function.

function login() {
if (Ext.getCmp('loginForm').getForm().isValid()) {
Ext.getCmp('loginForm').getForm().submit({
url : 'login.ered?reqCode=login',
waitTitle : 'tip',
method : 'POST',
waitMsg : 'please wait.....',
success : function(form, action) {
window.location.href = 'index.ered?reqCode=indexInit';
},
failure : function(form, action) {
var errmsg = action.result.msg;
var errtype = action.result.errorType;
Ext.Msg.alert('tip', errmsg);
}
});
}
}

mitchellsimoens
25 May 2012, 11:36 AM
Does the form get unmasked from the wait configs?

liyf.008
28 May 2012, 8:27 AM
35671