Response title
This is preview!
<script>function tableOne() {$.ajax({url: "/cont/_ActionOne",type: "GET",}).done(function (partialViewResult) {var degree = 90;$(".type1").css("transform", "rotateY(" + degree + "deg)").delay(1250).queue(function () {$("#tableOne").html(partialViewResult);var degreex = 0;$(".type1").css("transform", "rotateY(" + degreex + "deg)");console.log("tableOne");})})}</script><script>function tableTwo() {$.ajax({url: "/cont/_ActionTwo",type: "GET",}).done(function (partialViewResult) {var degree = 90;$(".type2").css("transform", "rotateY(" + degree + "deg)").delay(1250).queue(function () {$("#tableTwo").html(partialViewResult);var degreex = 0;$(".type2").css("transform", "rotateY(" + degreex + "deg)");console.log("TableTwo");})})}</script><script>function tableThree() {$.ajax({url: "/cont/_ActionThree",type: "GET",}).done(function (partialViewResult) {var degree = 90;$(".type3").css("transform", "rotateY(" + degree + "deg)").delay(1250).queue(function () {$("#tableThree").html(partialViewResult);var degreex = 0;$(".type3").css("transform", "rotateY(" + degreex + "deg)");console.log("TableThree");})})}</script><script type="text/javascript">$(document).ready(function () {$.when(tableOne(), tableTwo(), tableThree()).then(function () {console.log("PostLoad");$('.CheckBox').attr('disabled', false);})});</script>
and the tables now look like..<script type="text/javascript">$(document).ready(function () {var a = [TableOne(1),TableTwo(2),TableThree(3)]$.when.apply(0, a).done(function () {console.log("all done");$('.CheckBox').attr('disabled', false);})
<script type="text/javascript">//Load Counts Sectionsfunction TableOne(i) {var def = $.Deferred();$.ajax({url: "/Cont/_TableOne",type: "GET",success: function (partialViewResult) {var degree = 90;$(".type1").css("transform", "rotateY(" + degree + "deg)").delay(1250).queue(function () {$("#ageTable").html(partialViewResult);var degreex = 0;$(".type1").css("transform", "rotateY(" + degreex + "deg)");console.log("TableOne");def.resolve(partialViewResult);})}})
© 2013 jQuery Foundation
Sponsored by and others.