Answers for "reload div and show again"

1

relode div

function updateDiv()
{ 
    $( "#here" ).load(window.location.href + " #here" );
}
Posted by: Guest on April-22-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

Browse Popular Code Answers by Language