Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($)
- {
- $(document).ready(function()
- {
- $.ajaxSetup(
- {
- cache: false,
- beforeSend: function() {
- $('#refresh-content').show();
- $('#update-time').show();
- },
- complete: function() {
- $('#refresh-content').show();
- $('#update-time').show();
- },
- success: function() {
- $('#refresh-content').show();
- $('#update-time').show();
- }
- });
- var $container = $("#refresh-content");
- $container.load("news.php");
- var refreshId = setInterval(function()
- {
- $container.load('news.php');
- }, 1000);
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement