Skip to content

Instantly share code, notes, and snippets.

@fomigo
Created February 28, 2012 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fomigo/1932287 to your computer and use it in GitHub Desktop.
Save fomigo/1932287 to your computer and use it in GitHub Desktop.
just one of the usage jquery deferred
$.when(
$.ajax('ajax.php')
).then(function(data){
// Here I can work with data like I would with a regular ajax request
alert($(data).find('mynode').text());
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment