Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5985469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:32:04+00:00 2026-05-22T22:32:04+00:00

Background: jquery 1.5.2, ruby on rails. The major issue seems to be that I’m

  • 0

Background: jquery 1.5.2, ruby on rails.

The major issue seems to be that I’m getting a 0 response code regardless of what the web server tells me it is returning.

I have an application that returns a 422 when validation on a model fails, but for some reason the success function is getting called every time.

     $("#form").ajaxSubmit({
      dataType: 'json',
      success: function(data, status, response) {
        // stuff
      },
      error: function(data) {
        // stuff
      }
     });

When I console.log everything, this is what I see:

POST http://site/favicons 422 (Unprocessable Entity)
data: Object
  favicon: "Image must be 16x16 pixels"
  __proto__: Object

status: success

response:Object
abort: function (status) {
aborted: 0
getAllResponseHeaders: function () {}
getResponseHeader: function (header){
responseText: "{"favicon":"Image must be 16x16 pixels"}"
responseXML: null
setRequestHeader: function () {}
status: 0
statusText: "n/a"
__proto__: Object
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:32:05+00:00Added an answer on May 22, 2026 at 10:32 pm

    The issue was because I was doing a file upload, which always returns 0 and n/a.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a newbie when it comes to Ruby On Rails (and web programming
I am having an issue positioning a background image using the following jquery background
I'm starting to write code using Prototype coming from a jQuery background. Is there
I'm doing a jquery plugin that moves the background of a div (based on
I know that you can .animate() background-image with jQuery. But can you .animate() background:
The issue I'm using jQuery supersized for a full screen background image, which will
I'm using the Tablesorter Jquery plugin to sort a table, but the images background
Background: At my company we are developing a bunch applications that are using the
how to set background images when jquery dialog ui is open() how can i
Can I have text in the background of a jQuery UI progress bar? You

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.