Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($)
- {
- $(document).ready(function()
- {<br>
- $.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("post-data.php");
- var refreshId = setInterval(function()
- {
- $container.load('post-data.php');
- }, 9000);
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement