Created
February 10, 2012 11:04
-
-
Save andrewjamesford/1788793 to your computer and use it in GitHub Desktop.
Auto refresh div via jQuery every 10 seconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var auto_refresh = setInterval( | |
function () { | |
$('#voteListing ul').load('/home/listing').fadeIn("slow"); | |
}, 10000); // refresh every 10000 milliseconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment