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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:53:06+00:00 2026-06-10T00:53:06+00:00

I am trying to patch up a bit of AJAX that doesn’t work in

  • 0

I am trying to patch up a bit of AJAX that doesn’t work in Chrome. It’s not my script and I’d rather not convert the whole thing to jQuery.

xmlhttp.open("GET", query, true);
xmlhttp.onreadystatechange = function () {
    if (xmlhttp.readyState == 4) {
        console.log(xmlhttp.responseText);
    }
}
xmlhttp.send();

This actually outputs something in the log while using Internet Explorer, but when in (Ch)rome I get an empty string, since the JS debugger tells me that GET failed. The target URL is correct since it works in IE, but it is some kind of ASP.NET script which inner workings I’m not very familiar with (I do the HTML, CSS and JavaScript around here).

Why could it be that IE is allowed to retrieve the information from the target, but not Chrome? When using Chrome xmlhttp is a XMLHttpRequest and IE gets some kind of ActiveXObject.

Edit. I found some possible solutions here. Response.Close(), no async or specified/empty data type. It’s jQuery though.

Edit #2. What Chrome is saying about my headers.

  • 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-10T00:53:07+00:00Added an answer on June 10, 2026 at 12:53 am

    Okay, so I’ve solved it. Chrome apparently dislikes having Response.Close() at the end of the requested page. Changing to Response.End() fixed it. Thank you for your help!

    I also replaced that JavaScript with one line of jQuery.

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

Sidebar

Related Questions

I am trying to write a script to patch our mysql database. Something like
I'm trying to understand how to get librsync to work (ie. make signature/make delta/patch)
I'm trying to compile a bit of code that looks something like so: (examples
I'm trying to debug a 32 bit process dump from a process that ran
I've got the following bit of code that generates a list I'm trying to
What I'm trying to accomplish is pulling content from a directory that is not
I am trying to fix a problem where my wCF services will not work
I am trying to patch dmenu with the files provided here: http://aur.archlinux.org/packages.php?ID=27334 I do
I'm having trouble patching a class for my testing. I'm trying to patch something
I'm trying to create a patch for cf.vim to resolve an issue with hashes.

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.