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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:56:25+00:00 2026-05-18T03:56:25+00:00

I am using Ajax in my application. It is working fine in all the

  • 0

I am using Ajax in my application. It is working fine in all the browsers, but not in any of the IE versions. Here is the code that I have written, please have a look and tell me where I am wrong. Here’s the code:

<script type="text/javascript">
  function loadXMLDoc(str) {
    document.getElementById('spinner').style.display = "block";

    if (str == "") {
      document.getElementById("pickZone").innerHTML = "";
      document.getElementById('spinner').style.display = "none";
      return;
    }



    if (window.XMLHttpRequest) {
      xmlhttp = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
      try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
      }
      catch (e) {
        try {
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch (e) {
          xmlhttp = false;
        }
      }
    }



    xmlhttp.onreadystatechange = function () {
      if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
        document.getElementById('spinner').style.display = "none";
        document.getElementById("pickZone").innerHTML = xmlhttp.responseText;
      }
    }

    xmlhttp.open("GET", "getPickZone.jsp?q=" + str, true);
    xmlhttp.send();
  }
</script>
  • 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-18T03:56:26+00:00Added an answer on May 18, 2026 at 3:56 am

    If you’re not opposed to using jQuery you could just use:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
    function loadXMLDoc(str) {
      $('#spinner').css({display:"block"});
      $('#pickZone').html('');
      if (str != '') {
        $.ajax({
          type: "GET",
          url: "getPickZone.jsp",
          data: {q:str},
          success: function(xml) {
            $('#spinner').css({display:"none"});
            $('#pickZone').html(xml);
          }
        });
      }
    }
    </script>
    

    It might clean things up a bit and solve your cross-compatibility issues.

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

Sidebar

Related Questions

I have been working on on an AJAX chat application using php, mysql. It's
I've got an iframe application that's working fine and rendering fbml in facebook. But
I am working on an application which sends an AJAX POST request (I'm using
I have started using ajax/jQuery in our websites / application. There are many plugins
I have a small ajax application built with php. Using phpMyAdmin I have set
I have a mvc2 application with a view like this <% using (Ajax.BeginForm(UserApprove, new
Well.. we've developed a j2ee application using struts2 ajax capabilities. We find that the
I am using Ajax POST method to send data, but i am not able
I am trying to create a facebook application, all is working fine except the
I am using ajax animation extender in my application. It is working perfectly in

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.