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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:40:16+00:00 2026-06-06T07:40:16+00:00

I recently refactored some ajax code to make it asynchronous. It was working perfectly

  • 0

I recently refactored some ajax code to make it asynchronous. It was working perfectly before, but I wanted to use jQuery promises, so I jQuerified it. Now, however, the ajax call works in every browser but IE.

IE9 throws the error where the ajax function is assigned a variable name. The error in IE is:

“Object doesn’t support this method or property on line 99.”

Here’s a chunk where the error occurs:

if (screen.width > 525 && svgSupported) {
    $loadingSvg = $.ajax({
        type: 'GET',
        url: 'images/mypicture.svg',
        dataType: 'xml',
        success: function(data){
            console.log("Ajax request successfully returned: " + data);
            console.log(data);
        },
    error: function(data){
        console.log("Ajax request failed: " + data);
        }
});
}

I’ve tried some obvious things other people in similar situations have suggested on SO, like wrapping everything in jQ $(document).ready. That doesn’t fix it. The $loadingSvg variable is declared globally at the top of the script, so that ain’t it. Any ideas, folks?

  • 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-06T07:40:17+00:00Added an answer on June 6, 2026 at 7:40 am

    The issue is actually your console.log line:

    console.log("Ajax request successfully returned: " + data);
    

    More specifically, IE can’t seem to concatenate an XML document with a string, or indeed XML anything with a string. They don’t support .toString(). Just remove that part and continue working :)

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

Sidebar

Related Questions

I recently refactored some code in an Active Directory role provider to remove support
I recently refactored some code and now have a static utility class with a
I recently refactored some code, and a method the original Global.asax.cs file was depending
I recently refactored some of my code to stuff rows into a db using
I recently refactored code like this ( MyClass to MyClassR ). #include <iostream> class
I recently refactored old code files from ABCFile.cpp/.h to AbcFile.cpp/.h to match my company's
I've recently refactored an existing CodeIgniter application to use url segments instead of query
I recently read Michael C. Feathers' book Working effectively with legacy code and came
Recently, we discovered odd behavior in some old code. This code has worked for
Recently, i took ownership of some c++ code. I am going to maintain this

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.