PDA

View Full Version : Hello, I'm having errors in Submit Form... Ajax communication failed



birkoff rsx
25 Aug 2010, 1:10 AM
Hello, I'm having errors in Submit Form... Ajax communication failed.
Please help....


The buttons code...

buttons: [{
text: 'Save',
formBind: true,
handler: function(){
var form = Ext.getCmp('form_new_category').getForm();

if(form.isValid()){

form.submit({
method:'PUT',
success: function (form, action) {
Ext.MessageBox.alert ('Message','Is correct');
},
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);
}
}
});
}
}

Animal
25 Aug 2010, 1:23 AM
How are you attempting to debug?