2

i have a web page with more div's. Each div load via ajax one action that calculate and show the report data in html.

Code html:

<div class="divAutoLoading" data-href="/controller/action"></div>

Code js:

$('.divAutoLoading').each(function () {
    var divAutoLoading = $(this);
    divAutoLoading.showLoading();
    $.ajax({
        type: 'POST',
        url: divAutoLoading.attr('data-href'),
        async: true,
        cache: false,
        success: function (html) {
            divAutoLoading.hideLoading();
            divAutoLoading.html(html);
        }
    });
});

Then I have 4 divs, they call four different action, every action has different computation times. What I expect is that when an Action ends, showing the results, but instead it seems as if the action is put in the queue, and if it is not completed the previous one, does not start the next one. What am I doing wrong?

P.S. jquery version is: 1.8.2

JellyBelly
  • 2,451
  • 2
  • 21
  • 41
  • There is normally a limit to [number simultaneous request to a domain](http://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browse) – Arun P Johny Mar 21 '13 at 10:51
  • reading the comments of the post you reported, it is called a greater number of my requests. I will do 5 competitors and should be suppoertate both FF to chrome! It seems to me as if I do two at a time! :S – JellyBelly Mar 21 '13 at 11:24
  • it not just the ajax requests all network activities is included – Arun P Johny Mar 21 '13 at 11:34

0 Answers0