Skip to content

Instantly share code, notes, and snippets.

@ahankinson
Created September 25, 2011 16:19
Show Gist options
  • Save ahankinson/1240782 to your computer and use it in GitHub Desktop.
Save ahankinson/1240782 to your computer and use it in GitHub Desktop.
Basic AJAX pattern
function doSomethingWhenClicked() {
jQuery.ajax(<parameters>,
success: successFunction(params),
)
}
function successFunction(params) {
...update your div...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment