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 8542807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:09:15+00:00 2026-06-11T12:09:15+00:00

I spent a while trying to understand why my jQuery.ajax call was not invoking

  • 0

I spent a while trying to understand why my jQuery.ajax call was not invoking the callback function, even though I could see on the network that the POST request succeeded.

My code looked something like this:

var invokeService = function (url, action, parameters, callback, async, errorFn) {
    var jqXhr = $.ajax({
        async:async,
        type:'POST',
        cache:false,
        url:url + '?action=' + action,
        contentType:'application/json; charset=utf-8',
        data:$.toJSON(parameters),
        done:callback,
        fail:errorFn
    });
};

and I was calling it like:

invokeService(serviceUrl, 'ActionFn', {param:'one'}, successFn, null, failFn);

I couldn’t figure out why my callback was getting invoked on other browsers, but not IE9.

I posted the answer that I found so I could find it again if it happened in the future, since I couldn’t find the answer here…

  • 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-11T12:09:16+00:00Added an answer on June 11, 2026 at 12:09 pm

    What I discovered was that the async parameter of $.ajax doesn’t like a null value being passed in when you’re in IE9.

    I changed my code to explicitly use true or false for the async parameter and it began working:

    var invokeService = function (url, action, parameters, callback, errorFn) {
        var jqXhr = $.ajax({
            async:true, //<--- In my case I could just hard code it, probably even remove this param.
            type:'POST',
            cache:false,
            url:url + '?action=' + action,
            contentType:'application/json; charset=utf-8',
            data:$.toJSON(parameters),
            done:callback,
            fail:errorFn
        });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While I was trying to refresh page contents dynamically using Ajax/JQuery, I have learned
I've spent a while trying to understand why my WPF app wasn't databinding to
I've spent a while trying to firgure it but but I can't see anything
Spent a solid hour trying to sort out why on earth this (coffeescript) $.ajax
I spent some two hours trying to understand why the JavaScript file I am
I have spent quite a while trying to solve this problem, but to no
I have spent most of a day trying to understand why Java cannot compile
I've spent a while looking through the symfony2 docs trying to find a suitable
I have spent quite a while trying to write a program to implement Conway's
I am trying to understand what is preventing jquery from parsing my XML reply.

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.