In a script like the following, would the load functions be called in asynchronously or one after another?
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("#TheLink").click(){
$("#PlaceToUpdate1").load("/Controller/Method/View1");
$("#PlaceToUpdat2").load("/Controller/Method/View2");
}
});
});
</script>
Asynchronously, by default. If you need them to be one-after-the-other, you can do a few things:
$.ajax({async:false})The cleanest way is probably option 2.