Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jQuery Ajax
function ajaxFinish(xml)
{
$("FeedItemSummary", xml).each(function()
{
url = $("Url", this).text();
title = $("Title", this).text();
tldName = $("TldName", this).text();
content = $("Content", this).text();
publishDate = $("PublishDate", this).text();
hash = $("Hash", this).text();
feedImage = $("FeedImage", this).text();
// Add the title with a named anchor
$("#feedcontainer").append('<div class="feedItem"><a name="' + hash + '"></a>');
$("#feedcontainer").append('<a href="' + url + '" target="_blank" class="title">' + title + '</a><br/>');
// etc.
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.