Skip to content

Instantly share code, notes, and snippets.

@chriscoyier
Created January 17, 2011 21:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chriscoyier/783559 to your computer and use it in GitHub Desktop.
Save chriscoyier/783559 to your computer and use it in GitHub Desktop.
<script>
function processEntries(data) {
// Loop for each entry
$.each(data.Entries, function(entriesIndex, entriesObject) {
// Field3 is the email field on this particular form
if (entriesObject.Field3 != "") {
$("<img />", {
src: "http://www.gravatar.com/avatar/" + MD5(entriesObject.Field3)
}).appendTo("#people");
}
});
};
$.wufooAPI.getEntries({
"callback" : processEntries,
"formHash" : "z7p0p1",
"getterPath" : "../gravatar-party-list/"
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment