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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:46:21+00:00 2026-06-16T21:46:21+00:00

I have done a simple ajax… The request and response header both contain the

  • 0

I have done a simple ajax…

The request and response header both contain the Connection: Keep-Alive

I goggle a bit and saw that the client thus maintain a persistent connection
with the server. This support pipelining, where client may send multiple request without waiting for each response.

So i have some questions:

  1. Where does the xmlhttprequest actually open a connection to the server?
  2. Does creating many xmlhttprequest object open their own connect or it send it on a same connection using pipelining…?
  3. I want to handle simultaneous request.. Can i queue the request(store parameters) ..and in the onreadystate provide function to handle it.. i.e. calling the function that make request recursively? or it’s not a good idea at all?
  4. When is the connection closed..at what stage?

Other info:
I don’t want to use jquery or any other librarie for the ajax.You can propose though. i
can check how they work.
I’m using javascrip and php(codeigniter framework).
I want to be able to handle multiple request(2)..and queue request that are
made when the limit has been reached.

Thanks in advance 🙂

  • 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-16T21:46:22+00:00Added an answer on June 16, 2026 at 9:46 pm

    XMLHttpRequest is an object which let you to request and receive data from server without refreshing the page. It uses HTTP or HTTPS requests. It is basically same as requesting and receiving an HTML page. You may open them synchronous or asynchronous.

    XMLHttpRequest.open( Method, URL, Asynchronous, UserName, Password )
    

    Here, Method is HTTP request method to use. See http://www.w3.org/TR/XMLHttpRequest/#the-open()-method

    I want to handle simultaneous request.. Can i queue the request(store parameters) ..and in the onreadystate provide function to handle it.. i.e. calling the function that make request recursively? or it’s not a good idea at all?

    I’d make an array of XMLHttpRequests and handle data and remove XMLHttpRequest from array onreadystatechange. Keep in mind that you will receive a mixed order of asynchronous responses or may not receive a response at all.

    When is the connection closed..at what stage?

    It is closed right after data is received. Note that keep-alive is about keeping the session alive, not the connection.

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

Sidebar

Related Questions

I have a very simple ajax request: $.get(url, data) .done(function () { }) .fail(function
I have done simple java app for blackberry, while building am getting following error.
I have done a simple code for a slideshow that dynamicly loads images from
I have recently done a very simple highlighting with jQuery and a highlight plugin.
I hope I am not missing something very simple here. I have done a
I've done some simple string -> DateTime conversions before using DateTime.ParseExact(), but I have
I'm looking for a simple way to have this done. I would to have
I want to do a simple drag-drop using jQuery. I have not done anything
Say you have a simple loop while read line do printf ${line#*//}\n done <
I did two sample applications in ios.Both applications i have done using storyboard.Then after

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.