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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:22:27+00:00 2026-05-24T14:22:27+00:00

I have a website where I make an ajax call like this: // perform

  • 0

I have a website where I make an ajax call like this:

            // perform an ajax request to generate a new subscriber account
            jQuery.ajax({
                type: 'POST',
                url: '/index.php?option=com_content&view=article&id=45&tmpl=component',
                data: postVars,
                success: handleResponse,
                error: function(jqXHR, textStatus, errorThrown) {
                    alert ('response: ' + jqXHR.responseText);
                    alert ('code: ' + jqXHR.getResponseHeader('X-Subscriber-Status'));
                }
            });

The page being requested doesn’t do anything but return a single digit status code and it works fine with every browser except for IE9. The script is hosted on the same domain as the page it’s requesting so there shouldn’t be any issue with cross domain scripting.

I finally tracked down what’s happening but I don’t know how to fix it. It turns out that the Ajax request completes successfully with no problems. I verified this by using Fiddler to look a the network traffic. The server responds to the request with an HTTP status code of 200 and the body doesn’t contain anything but a single digit response code. At this point jQuery executes the error handler, NOT the success handler as would be expected (in IE9). Why does it do this and how can I prevent it?? This ONLY happens in IE9. Even IE8 and IE7 work just fine with the exact same code! As you can see I finally resorted to detecting IE9 and using an XmlHttpRequest object to do it (which works just fine by the way).

This seems like a jQuery bug to me but I can’t find any mention of it in my searches. Am I really the only one experiencing this odd behavior?

  • 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-24T14:22:28+00:00Added an answer on May 24, 2026 at 2:22 pm

    Well I finally tracked down the problem. It turns out that for some reason jQuery/IE does not correctly urlencode double quotes. The URL of the request was:

    /search.json?callback=jQuery16105234487927080267_1313510362362&q=stocks OR “stock market” -blueprint -empireavenue.com -learn&_=1313510362469

    In every other browser by the time jQuery performed the ajax request it looked like:

    /search.json?callback=jQuery16105234487927080267_1313510362362&q=stocks%20OR%20%22stock%20market%22%20-blueprint%20-empireavenue.com%20-learn&_=1313510362469

    but for whatever reason in all versions of IE it came out like this:

    /search.json?callback=jQuery16105234487927080267_1313510362362&q=stocks%20OR%20″stock%20market”%20-blueprint%20-empireavenue.com%20-learn&_=1313510362469

    which caused the server to return no data.

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

Sidebar

Related Questions

I have a ASP.NET website. If I make a request for a page it
I'm using jQuery. I have website feature that does an ajax search and returns
I need to make an AJAX request from a website to a REST web
For AJAX on my website, I make calls from a Javascript file to something.php?request=bla.
Suppose I make an AJAX HTTP Request from jQuery to a backend PHP script.
I have a website that tells the output is UTF-8, but I never make
Welcome, I notice that Youtube make some changes into their website code. Anyone have
I have website that use XMLHttpRequest (jQuery, actually). I also have another site running
I have an existing PHP website which uses a considerable amount of jQuery and
I have this segment of XML: <mvc:interceptors> <mvc:interceptor> <mvc:mapping path=/statics/** /> <bean class=com.company.website.servlet.StaticsHandlerInterceptor />

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.