2017-02-16 9:08 GMT+01:00 Greg Huber <gregh3...@gmail.com>: >>I don't understand, 400 is a common way to say that the request was >>wrong, do you want something else? > > On firefox, a 400 triggers the > > error: function(xhr, textStatus, errorThrown) {..} > > so only displays 'Network or server error!' rather than the validation > response. > > Maybe a 400 on other browsers triggers the success: function rather than > the error: ??? > > success: function (response, statusText, xhr) {..}
I think it will always trigger an error function, only 200 will trigger a success function. I think the example is very simple and you should extend it, like checking if it was 400 or 500 Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org