PDA

View Full Version : Error response from server doesn't interprete as failure



Just-Boris
29 May 2012, 10:24 PM
I make submit from Ext.form.Panel:


form.submit({
params : params,
success : function(form, action) {
this.load();
},
failure : function(form, action) {
AjaxFailureMsg(action.result);
}
});

I get response from server with the following headers

Response HTTP/1.1 400 Bad Request
Date Wed, 30 May 2012 06:10:37 GMT
Server Apache/2.2.21 (Win32) mod_jk/1.2.32 PHP/5.3.9
Pragma no-cache
Cache-Control no-cache, no-store, max-age=0
Expires Thu, 01 Jan 1970 00:00:00 GMT
Content-Language en
Connection close
Transfer-Encoding chunked
Content-Type text/html;charset=UTF-8
In all browsers it is interpreted as failure and execute appropriate method
But IE doesn't interprete as failture and execute success method.
What does it mean? Incorrect response or ExtJS bug? I use 4.1.0

mitchellsimoens
7 Jun 2012, 12:12 PM
Do you return JSON also?