- formPanel.getForm().submit({
- url:'./login.jxp',
- params: {
- action: 'authenticate',
- redirect: Ext.get('after-login').dom.innerHTML
- },
- clientValidation: true,
- success: function(form, action) {
- //Ext.Msg.alert('Success', action.result.msg);
- window.location.replace(action.result.result.msg);
- },
- failure: function(form, action) {
- switch (action.failureType) {
- case Ext.form.Action.CLIENT_INVALID:
- Ext.Msg.alert('Failure', 'Form fields may not be submitted with invalid values');
- break;
- case Ext.form.Action.CONNECT_FAILURE:
- Ext.Msg.alert('Failure', 'Ajax communication failed');
- break;
- case Ext.form.Action.SERVER_INVALID:
- Ext.Msg.alert('Failure', action.result.msg);
- }
- },
- waitMsg:'正在登录...'
- });
111
最新推荐文章于 2022-01-22 23:04:26 发布