Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > How many XMLHTTPRequests can be made from a single form?

Thread Tools

How many XMLHTTPRequests can be made from a single form?

srimansarath srimansarath is offline
Junior Member
Join Date: Jan 2013
Posts: 1

I am working on implementing an ajax script which invokes a servlet to get the data from the back end.
The solution works fine until 10 XMLHTTPRequests are made. After that it is not allowing to make any other requests.

Please find below my code:

var req = newXMLHttpRequest();
//register the callback handler function
var callbackHandler = getReadyStateHandler(req, validateSelectedvalue);
req.onreadystatechange = callbackHandler;"GET", "/XYZ/servlet/FinderServlet", true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
//get the value from the text input element and send it to server
var testmsg = document.getElementById("identifier_1");
var msg_value = testmsg.value;
msg_value = msg_value.toUpperCase();

We suspect that the above code is causing this problem as the solution works fine without the above code.
Please let me know if there are any ways to close/dispose the XMLHTTPRequest.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Multiple XMLHTTPREQUESTS and Queuing... Javascript 7 04-16-2006 08:05 PM
Multiple XMLHTTPREQUESTS and Queuing... ASP General 7 04-16-2006 08:05 PM
serialized XMLHttpRequests Eric S Johansson Javascript 19 01-28-2006 08:31 PM
Are XmlHttpRequests being cached? Martin Javascript 1 03-31-2005 03:46 PM