Created
October 11, 2013 15:28
-
-
Save jookyboi/6936716 to your computer and use it in GitHub Desktop.
Execute a function when both ajax requests are complete. From http://api.jquery.com/jQuery.when/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done( | |
function( a1, a2 ) { | |
// do something | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment