Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Window setInterval() Method

<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>
Source by www.kodingmadesimple.com #
 
PREVIOUS NEXT
Tagged: #Window #Method
ADD COMMENT
Topic
Name
1+8 =