<script type="text/javascript">
function getFeed() {
$.ajax({
url: 'get_news_feed.php',
type: 'POST',
success: function(data) {
$('#result').html(data);
}
});
}
$(document).ready(function() {
setInterval(getFeed, 5000);
});
</script>