I've got a site that's using rails3, jquery-forms, and I'm testing in firefox and chome.
For the sake of testing, I've got the server returning 422 status every time.
When I submit my form, Firefox correctly hits "error." Chrome incorrectly hits "success."
Anyone have any ideas why this might be the case?
$('form').ajaxSubmit({
dataType: 'json',
success: function(responseText, statusText, xhr, $form) {
console.log("It hits success");
},
error: function(responseText, statusText, xhr) {
console.log("It hits failure");
}
});