开发者

Jquery/Ajax Refresh without reload or load the page?

开发者 https://www.devze.com 2022-12-28 02:58 出处:网络
I have a report page which dynamically generate the record and saved in the database. From database i need to show the dynamically updated records in the page without reload or load the cont开发者_Pyt

I have a report page which dynamically generate the record and saved in the database. From database i need to show the dynamically updated records in the page without reload or load the cont开发者_Python百科ents using setInterval time function.


see my question Here

and use setInterval function with it

var refreshId = setInterval(function() 
{
    $("#yourContainer").load('yourPage.php');
}, 5000);

offcourse Jquery is prereq for this... so download jQuery from here and include it in your page

<script href="yourlink to the file"></script>


this code http://pastie.org/937213 loads ajax.php to #live div every 3 seconds

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号