# Ajax Call Concurrency

**URL:** <https://community.thinkgeo.com/t/ajax-call-concurrency/4022>\
**Category:** MVC\
**Created:** [March 23, 2013, 11:58am UTC](https://community.thinkgeo.com/t/ajax-call-concurrency/4022 "2013-03-23T11:58:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [March 23, 2013, 11:58am UTC](https://community.thinkgeo.com/t/ajax-call-concurrency/4022/1 "2013-03-23T11:58:09Z")

</div>

&nbsp;Hi,

&nbsp;

I&nbsp;think&nbsp;that&nbsp;there&nbsp;is&nbsp;a&nbsp;need&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;queue&nbsp;the&nbsp;AjaxCall&nbsp;in&nbsp;order&nbsp;to&nbsp;avoid&nbsp;concurrency&nbsp;issues...&nbsp;&nbsp;I&nbsp;would&nbsp;like&nbsp;to&nbsp;know&nbsp;how&nbsp;I&nbsp;could&nbsp;&nbsp;do&nbsp;that...&nbsp;&nbsp;I&nbsp;know&nbsp;that&nbsp;some&nbsp;jQuery&nbsp;stuff&nbsp;are&nbsp;availabe&nbsp;but&nbsp;if&nbsp;you&nbsp;could&nbsp;provide&nbsp;a&nbsp;simple&nbsp;working&nbsp;example?

thanks&nbsp;in&nbsp;advance.

jm

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [March 25, 2013, 3:46am UTC](https://community.thinkgeo.com/t/ajax-call-concurrency/4022/2 "2013-03-25T03:46:56Z")

</div>

&nbsp;Hi&nbsp;Jean-marie,

Can&nbsp;you&nbsp;show&nbsp;me&nbsp;more&nbsp;on&nbsp;the&nbsp;words&nbsp;“_queue&nbsp;the&nbsp;AjaxCall&nbsp;in&nbsp;order&nbsp;to&nbsp;avoid&nbsp;concurrency&nbsp;issues_”?&nbsp;Do&nbsp;these&nbsp;AjaxCalls&nbsp;have&nbsp;a&nbsp;sequence?&nbsp;Such&nbsp;as&nbsp;you&nbsp;need&nbsp;to&nbsp;call&nbsp;Ajax1,&nbsp;and&nbsp;then&nbsp;Ajax2&nbsp;which&nbsp;is&nbsp;based&nbsp;on&nbsp;Ajax1.&nbsp;Or&nbsp;they&nbsp;can&nbsp;be&nbsp;called&nbsp;at&nbsp;the&nbsp;same&nbsp;time?&nbsp;What’s&nbsp;the&nbsp;problem&nbsp;you&nbsp;are&nbsp;encountering?

Thanks,

Johnny

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [March 25, 2013, 11:44am UTC](https://community.thinkgeo.com/t/ajax-call-concurrency/4022/3 "2013-03-25T11:44:34Z")

</div>

I&nbsp;have&nbsp;to&nbsp;nest&nbsp;Ajaxcalsl&nbsp;because&nbsp;if&nbsp;not&nbsp;they&nbsp;will&nbsp;all&nbsp;be&nbsp;fired&nbsp;at&nbsp;once…

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [March 25, 2013, 11:58am UTC](https://community.thinkgeo.com/t/ajax-call-concurrency/4022/4 "2013-03-25T11:58:30Z")

</div>

I&nbsp;have&nbsp;to&nbsp;nest&nbsp;Ajaxcalsl&nbsp;because&nbsp;if&nbsp;not&nbsp;they&nbsp;will&nbsp;all&nbsp;be&nbsp;fired&nbsp;at&nbsp;once…

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [March 25, 2013, 10:34pm UTC](https://community.thinkgeo.com/t/ajax-call-concurrency/4022/5 "2013-03-25T22:34:42Z")

</div>

Ho&nbsp;Jean-marie,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Do&nbsp;you&nbsp;mean&nbsp;you&nbsp;don’t&nbsp;want&nbsp;them&nbsp;rasied&nbsp;at&nbsp;the&nbsp;same&nbsp;time?&nbsp;In&nbsp;other&nbsp;words,&nbsp;they&nbsp;are&nbsp;depended&nbsp;between&nbsp;each&nbsp;other?&nbsp;In&nbsp;that&nbsp;case,&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;call&nbsp;the&nbsp;later&nbsp;in&nbsp;the&nbsp;privious&nbsp;callback&nbsp;funciton.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Johnny
