Created
January 17, 2011 20:48
-
-
Save nikibrown/783451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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