Skip to content

Instantly share code, notes, and snippets.

@nikibrown
Created January 24, 2011 18:15
Show Gist options
  • Save nikibrown/793640 to your computer and use it in GitHub Desktop.
Save nikibrown/793640 to your computer and use it in GitHub Desktop.
// Loop for each entry
$.each(data.Entries, function(entriesIndex, entriesObject) {
if( entriesIndex < 5 ){
if (entriesObject.Field21 == "Yes") { // admin field for approval
if (entriesObject.Field15 == "Yes") { // checks if this is an entry, not just RSVP
$("<li />", {
html: "<p>" + '<a href="' + entriesObject.Field19 + '" target="_blank">' + entriesObject.Field4 + "</p>" + '<img src="http://images.websnapr.com/?url=' + entriesObject.Field19 + '" />' + "</a>"
// Add it to the page
}).appendTo("#entries");
} // end if entry = yes
} // end if approved = yes
} // end entries # if
}); // end for each loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment