jquery - ajax request per div -
i have 10 divs on page , each div render own ajax request when page loads. know can make max 2 ajax requests , have wait (based on browser) before next request gets fired. wondering best way design such page.
should create ajax request inside divs can pass div context ajax reponse? this:
<div id="request1"> make ajax request </div> <div id="request2"> make ajax request </div> , on......
is there chance result may mixed , wrong div render result different request?
--edit--
i cannot make single call make calls separate service , service may or may not available.
ajax asynchronous, way, if call 10 ajax requests using either $.get
, $.post
or $.ajax
, requests fire independently without waiting previous ones. unless have special requirements need avoid that, go ahead
Comments
Post a Comment