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

  • SEARCH
  • Home
  • 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 8146609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:03:48+00:00 2026-06-06T14:03:48+00:00

Submitting the following $.ajax, which is indeed executing but fails silently without any error.

  • 0

Submitting the following $.ajax, which is indeed executing but fails silently without any error. IE9 dev tools don’t spring an error and fiddler shows no traffic.

I can confirm the code does indeed execute since the “processing” bit does appear on the screen. However the rest seems to just fail. I am not doing x-domain.

$('.signupMsg').html("<img src='/assets/img/load-black.gif' /> Processing...");
var data = $('#emailForm').serialize();
$.ajax({
    url: 'https://example.com/proxy/emaillist',
    type: 'POST',
    data: data,
    statusCode: {
        200: function(msg) {
            $('.signupBlock').html("&nbsp;<br><strong>Thank you!</strong><br>You will be hearing from us soon.");
            $('#emailForm').remove();
        },
        500: function(msg) {
            $('.signupBlock').html("&nbsp;<br><strong>Something went wrong.</strong><br>Sorry about that, please <a href='/'>refresh</a> and try again.");
            $('#emailForm').remove();
        },
            404: function(msg) {
                    $('.signupBlock').html("&nbsp;<br><strong>Something went wrong.</strong><br>Sorry about that, please <a href='/'>refresh</a> and try again.");
                    $('#emailForm').remove();
            },
        503: function(msg) {
            $('.signupBlock').html("&nbsp;<br><strong>Server temporarily down.</strong><br>Sorry about that, please <a href='/'>refresh</a> and try again.");
            $('#emailForm').remove();
        },
        400: function(msg) {
            $('.signupMsg').html("<span style='color:red'>Email validation failed, please try again.</span>");
        }
    }                   

});

Using jQ 1.7.2. The code executes fine in Google Chrome but fails in IE7-9 and FF. Is statusCode not supported in older browsers?

Or should I just switch to SuperAgent for code response support? http://visionmedia.github.com/superagent/

  • 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-06-06T14:03:49+00:00Added an answer on June 6, 2026 at 2:03 pm

    Well it’s not a fix for jQuery but it is a fix for the AJAX call.

    I just switched to SuperAgent and got the same thing working:

    request
    .post('url/to/example')
    .send(data)
    .end(function(res){
        if(res.status==200) {
            $('.signupBlock').html("&nbsp;<br><strong>Thank you!</strong><br>You will be hearing from us soon.");
            $('#emailForm').remove();                           
        }
        if(res.status==500) {
            $('.signupBlock').html("&nbsp;<br><strong>Something went wrong.</strong><br>Sorry about that, please <a href='/'>refresh</a> and try again.");
            $('#emailForm').remove();
        }
        if(res.status==404) {
            $('.signupBlock').html("&nbsp;<br><strong>Something went wrong.</strong><br>Sorry about that, please <a href='/'>refresh</a> and try again.");
            $('#emailForm').remove();
        }
        if(res.status==503) {
            $('.signupBlock').html("&nbsp;<br><strong>Server temporarily down.</strong><br>Sorry about that, please <a href='/'>refresh</a> and try again.");
            $('#emailForm').remove();
        }
        if(res.status==400) {
            $('.signupMsg').html("<span style='color:red'>Email validation failed, please try again.</span>");
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting Error in submitting the form using AJAX and Jquery, following is
I am using the following code. Which is submitting fine with php and it
When submitting the following form I am getting this error : Fatal error: Call
I have the following error message in when submitting from my perforce client (p4v):
The following codes works without jquery. I insert data but it does not update
I'm getting the following error when I'm submitting a read action to Facebook -
I'm submitting an Ajax form but when it hits the controller the Request.IsAjax returns
I'm submitting to a rails webservice the following message: xmlPostData = <message> <message-text> +
I faced the following issue while I submitting my form using jQuery FORM and
I have following small script to preview some text before submitting it to store

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.