Results 1 to 3 of 3

Thread: Ext4.1.0 Ext.MessageBox doesn't show correct

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    4

    Default Ext4.1.0 Ext.MessageBox doesn't show correct

    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);
    }
    });
    }
    }

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Does the form get unmasked from the wait configs?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •