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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:33:18+00:00 2026-06-14T23:33:18+00:00

I am using jquery to do ajax calls: // omitting the code for the

  • 0

I am using jquery to do ajax calls:

    // omitting the code for the options properties

    var options = {
        type: Type,
        url: Url,
        data: '{aString:"abc"}',
        contentType: ContentType,
        dataType: dataType,
        //processdata: ProcessData,
        success: function (msg) {
            ServiceSucceeded(msg);
        },
        error: ServiceFailed

    };
    function ServiceFailed(result) {
        alert('Service call failed: ' + result.status + '' + result.statusText);
    }

    $.ajax(options).done(function () {
      alert("success: " + msg);
    });

This call works in that the url defined in options is called. The endpoint is a wcf service which I host so I have verified it’s called as expected.

I monitor the call with fiddler, and I see nothing wrong with the request or the response. The http response code is 200 OK.

But the function in done is not called. Instead ServiceFailed is run. Why is this? Why is done() not called, and why does jquery consi

  • 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-14T23:33:20+00:00Added an answer on June 14, 2026 at 11:33 pm

    We can only guess on the basis of what you’ve posted.

    You’re specifying a dataType to jQuery (but haven’t told us what that data type is), which means you’re (potentially) telling it to transform the result. For instance, if your dataType variable is “json”, jQuery will try to convert the result to JSON; if it’s “xml”, jQuery will try to convert the result to XML.

    If you’re watching the call occur and seeing a 200 response with content, that suggests to me that it’s the data conversion that fails.

    You can readily find out more about why an error occurs. The error function is called with this signature:

    function error(jqXHR, textStatus, errorThrown)
    

    …so you can put a breakpoint inside it and inspect textStatus (which should be 200 based on your monitoring of the result, but if it isn’t that’s useful information) and the errorThrown, which would probably give you some idea what went wrong.

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

Sidebar

Related Questions

I am using this code from http://www.joe-stevens.com/2010/01/04/using-jquery-to-make-ajax-calls-to-an-asmx-web-service-using-asp-net/ function callWebService(address) { var result; $(#result).addClass(loading); $.ajax({
I'm using JQuery with CodeIgniter PHP to figure make AJAX calls and return data
I am getting data dynamically using jQuery AJAX requests. The Ajax calls are nested,
I'm running a weird issue here. I have code that makes jquery ajax calls
I am using jquery ajax $.get which calls a php script on my server
I am making cross-domain Ajax calls using the latest version of jQuery 1.7.1. with
I am using jQuery to make some ajax calls and wonder how people handle
I am using jQuery for my Ajax calls... I have x amount of Ajax
I'm using jQuery's ajax calls to create a chart, from the Dojo toolkit, based
I'm using jQuery and jQuery UI. I experienced that users sometimes fire the ajax-calls

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.