I have a site that uses rails3, jquery-forms, and I am testing firefox and chome.
For testing, I get a server that returns status 422 each time.
When I submit my form, Firefox correctly removes the "error". Chrome misuses "success."
Anyone have any ideas why this might be so?
$('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"); } });
google-chrome ruby-on-rails jquery-forms-plugin
earnold
source share