How many XMLHTTPRequests can be made from a single form?

Discussion in 'Software' started by srimansarath, Jan 28, 2013.

  1. srimansarath

    srimansarath

    Joined:
    Jan 28, 2013
    Messages:
    1
    Hi,

    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;
    req.open("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;
    if(msg_value.length>0){
    msg_value = msg_value.toUpperCase();
    req.send("msg="+msg_value);
    }

    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.

    Regards,
    Sarath.
    srimansarath, Jan 28, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Josh
    Replies:
    2
    Views:
    440
    Michael Heitland
    Feb 16, 2004
  2. jazu

    Rebel XT, made in Japan, made in Thailand

    jazu, Dec 8, 2006, in forum: Digital Photography
    Replies:
    10
    Views:
    1,025
    John Turco
    Dec 12, 2006
  3. edwinvangorp@gmail.com

    HELP! can ping domain IP but can't find site form Spain

    edwinvangorp@gmail.com, Mar 9, 2007, in forum: Computer Support
    Replies:
    6
    Views:
    1,097
    Mike Easter
    Mar 10, 2007
  4. Phil
    Replies:
    40
    Views:
    3,475
  5. chintan
    Replies:
    0
    Views:
    1,716
    chintan
    Dec 19, 2007
Loading...

Share This Page