public
Last active

  • Download Gist
loop
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
// Loop for each entry
$.each(data.Entries, function(entriesIndex, entriesObject) {
// opening list item
// Field3 is the email field on this particular form
if (entriesObject.Field3 != "") {
 
$("<img />", {
class: "avatar",
src: "http://www.gravatar.com/avatar/" + MD5(entriesObject.Field3)
 
}).appendTo("#people");
}
// check if twitter name is not empty
if (entriesObject.Field17 != "") {
$("<a />", {
 
href: "http://twitter.com/" + entriesObject.Field17,
html: "<p>@" + entriesObject.Field17 + "</p>"
 
}).appendTo("#people");
}
// closing list item
 
}); // end for each loop

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.