Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery ajax refresh

function loadlink(){
    $('#links').load('test.php',function () {
         $(this).unwrap();
    });
}

loadlink(); // This will run on page load
setInterval(function(){
    loadlink() // this will run after every 5 seconds
}, 5000);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #ajax #refresh
ADD COMMENT
Topic
Name
4+4 =