Answers for "ajax div refresh"

2

refresh div jquery

$("#mydiv").load(location.href + " #mydiv");

//this is actualy not so nice but it does the job.
Posted by: Guest on March-24-2020
1

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);
Posted by: Guest on December-04-2020
0

refresh ajax jquery

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);
Posted by: Guest on April-06-2020
0

AJAX in reload a div container

(function($)
{
    $(document).ready(function()
    {
        $.ajaxSetup(
        {
            cache: false,
            beforeSend: function() {
                $('#content').hide();
                $('#loading').show();
            },
            complete: function() {
                $('#loading').hide();
                $('#content').show();
            },
            success: function() {
                $('#loading').hide();
                $('#content').show();
            }
        });
        var $container = $("#content");
        $container.load("rss-feed-data.php");
        var refreshId = setInterval(function()
        {
            $container.load('rss-feed-data.php');
        }, 9000);
    });
})(jQuery);
Posted by: Guest on April-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language