-
13 Jul 2011 3:15 PM #1
Non-200 HTTP response to a form submission via Ext.Direct is not handled
Non-200 HTTP response to a form submission via Ext.Direct is not handled
REQUIRED INFORMATION
Ext version tested:- Ext 4.0.2a
Browser versions tested against:- Google Chrome 12.0.742.100
Description:- Non-200 HTTP response to a form submission via Ext.Direct is not handled.
- It works as expected without Direct integration (if "api: { submit: test.test }" is commented out below)
Steps to reproduce the problem:- Click on "Submit" form button and check the console output.
The result that was expected:- Appropriate debug messages in the console: Code:
failure actionfailed
The result that occurs instead:- Empty console output
Test Case:PHP Code:Ext.onReady(function() {
Ext.Direct.addProvider({
url: 'nonexistent.php',
type: 'remoting',
actions: { test: [{ name: 'test', len: 0 }] }
});
Ext.create('Ext.form.Panel', {
renderTo: Ext.getBody(),
api: { submit: test.test },
buttons: [{
text: 'Submit',
handler: function() {
this.up('form').getForm().submit({
success: function() {
console.debug('success');
},
failure: function(form, action) {
console.debug('failure');
}
});
}
}],
listeners : {
actioncomplete : function(object, action) {
console.debug('actioncomplete');
},
actionfailed : function(object, action) {
console.debug('actionfailed');
}
}
});
});
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote