DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Limit to the number of consecutive AJAX calls?

  1. #1
    Join Date
    Nov 2009

    Limit to the number of consecutive AJAX calls?


    I've written an application in which I have 4 select boxes a, b, c, and d. When I make a selection on c, it has, in its onchange function, logic to automatically populate d, and when I make a selection on b, it has, in its onchange function, logic to automatically populate c and call c's onchange function, and so forth like this up to a.

    So, when I make a selection on a, it automatically populates b, c, and d. The way it populates the boxes is using different AJAX calls.

    When I select an option for a, though, b and c are populated but not d. d's onchange function is called, in which d makes an AJAX call to retrieve its data, but the AJAX call never finishes. The XMLHttpRequest object's ready state never makes it past 1.

    However, if I make a selection on b (a's direct subordinate), everything works fine and d is populated correctly.

    Any ideas on why this might happen this way? Is there some limit to the number of uses of an XMLHttpRequest object in a certain period of time?

    Any suggestions would be helpful.


  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Welcome to DevX

    You might find this interesting...

Similar Threads

  1. Replies: 1
    Last Post: 09-03-2009, 05:23 PM
  2. Replies: 18
    Last Post: 12-13-2006, 03:49 PM
  3. Prime number program to make go faster
    By divagoddess in forum C++
    Replies: 12
    Last Post: 05-07-2006, 10:55 PM
  4. Replies: 6
    Last Post: 09-28-2001, 02:44 AM
  5. Limit the number of records allowed in a table
    By Rick McLean in forum Database
    Replies: 4
    Last Post: 11-28-2000, 05:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center