Created
May 6, 2011 00:29
-
-
Save chriscoyier/958246 to your computer and use it in GitHub Desktop.
jsonwait.js
This file contains 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
$.ajax({ | |
url: url, | |
dataType: 'json', | |
data: data, | |
success: function() { | |
// NOW call the function again, but make sure at least XX seconds have gone by somehow | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment