');
$("#feedcontainer").append('
' + title + '');
// etc.
});
}
Ignoring the structure of the page, it simply gets the text of each property of a FeedItemSummary and uses it to append to the #feedcontainer div.
Adding some polish
The loading animation
One UI aspect you will be keen to include is a loading animation. A kind hourglass cursor except it's obviously now a hypnotic circle that rotates. There's lots of free animations you can use for this at
www.ajaxload.info which allows you to configure the background colour and foreground colour of it.
It's fairly trivial to add this loading animation in JQuery, you simple add a hidden div to your pay with this animation in, and toggle its display. So before your $.ajax call you toggle the div (I've called #loading):
$("#loading").toggle();
$.ajax(...);
then inside either the ajaxFinish() or ajaxError() functions you once again call it: