Skip to content

Instantly share code, notes, and snippets.

@nikibrown
Created January 17, 2011 20:48
Show Gist options
  • Save nikibrown/783451 to your computer and use it in GitHub Desktop.
Save nikibrown/783451 to your computer and use it in GitHub Desktop.
<script type='text/javascript'>
$(function() {
function processEntries(data) {
// Loop for each entry
$.each(data.Entries, function(entriesIndex, entriesObject) {
// reset
allValues = "";
// Loop for each field in the entry
$.each(entriesObject, function(fieldID, value) {
});
// Create a new li, fill with the values
$("<li />", {
class: "entry",
html: "<p>" + entriesObject.Field1 + " " + entriesObject.Field2 + "<br />" + allValues + entriesObject.Field4 + "<br />" + '<a href="http://twitter.com/' + entriesObject.Field17 + '">@' + entriesObject.Field17 +"</a></p>"
// Add it to the page
}).appendTo("#entries");
});
};
$.wufooAPI.getEntries({
"callback" : processEntries,
"formHash" : "q7p4q7",
"getterPath" : "http://bostonwebsitemakeover.com/j/",
"sortID" : "EntryID",
"sortDirection" : "DESC"
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment