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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:01:27+00:00 2026-05-27T02:01:27+00:00

I posting my value through ajax and using the response the details will be

  • 0

I posting my value through ajax and using the response the details will be displayed.I am getting the problem while retreiving the data.But i dono where i have mistaked,then this is the error getiing displayed frequently
“There was a problem while using XMLHTTP:\n”;

   in all browsers mainly in the chrome,could any one help me...

this is my code,

var xmlHttp;

try {
    // Firefox, Opera 8.0+, Safari
    xmlHttp = new XMLHttpRequest();
} catch (e) {
    // Internet Explorer 6+
    try {
        xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        // Internet Eplorer 5
        try {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e) {
            alert("Your browser does not support AJAX. Download a newer browser to view this page.");
            return false;
        }
    }
}

// insert server response into HTML element
xmlHttp.onreadystatechange = function() {
    if (xmlHttp.readyState == 4) {
        if (xmlHttp.status == 200) {
            MM_check_session(xmlHttp.responseText);
            var b_gc = document.getElementById(insert).value;
            document.getElementById(insert).value = xmlHttp.responseText;
            var shippingid = getCheckedValue('checkout_form', 'shippingid');
            closeMessage();
            MM_calc_shipping(shippingid);
            if (b_gc == xmlHttp.responseText) {
                MM_register();
            } else {
                error = 1;
                document.getElementById('payment_error').innerHTML = xmlHttp.responseText;
                document.getElementById(insert).value = '';
            }
        } else {
            closeMessage();
            alert("We can't process your request.Please refresh(reload) the page to proceed further:\n"
                    + xmlHttp.statusText);
        }

    }
}
displayStaticMessage(
        '<img src=' + config_MM_loader_image_path + ' alt=\'loading...Please wait\'>',
        false);

xmlHttp.open("POST", serverScript, true);
xmlHttp.setRequestHeader('Content-type',
'application/x-www-form-urlencoded');
xmlHttp.setRequestHeader('Content-length', parameters.length);
xmlHttp.setRequestHeader('Connection', 'close');
xmlHttp.send(parameters);

any help

  • 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-27T02:01:28+00:00Added an answer on May 27, 2026 at 2:01 am

    You seem to be incorrectly tagged as php. Also have you considered jQuery for the ease of ajax whilst using it.

    as for your question could you post the code on the page where the ajax request is going to as the code here looks fine..

    Edit:
    Where is serverScript set?
    change serverScript for the ajax page you are calling?
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms757849%28v=vs.85%29.aspx

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

Sidebar

Related Questions

For posting AJAX forms in a form with many parameters, I am using a
I am posting some form values through ajax to a PHP script. The PHP
I have some JQuery AJAX POSTing data to my backend C# WebForm. It POSTs
I have to issues: 1) I've tried using JsonP, but can't get POSTing to
Before posting this I've read through but I'm still not clear on how to
I went through dozens of answers to figure out the trick to posting data
I'll soon be posting an article on my blog , but I'd like to
I found a posting on the MySQL forums from 2005 , but nothing more
I am posting a string through an HTML form with the following code: <html>
I need help with posting a value to a php script from a js

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.