Created
July 6, 2012 08:40
-
-
Save chrisjung-dev/3058984 to your computer and use it in GitHub Desktop.
reloading script for DokuWiki
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
$(function){ | |
loader = setInterval( function(){ | |
jQuery('#bodyContent').load( window.location.href + '#bodyContent>*' ); | |
/* | |
* use '#bodyContent>*' selector for getting just the contents of #bodyContent | |
* but not the #bodyContent itself | |
* in addition: this will strip the script element as well, since we use a selector ;-) | |
*/ | |
}, 300000 ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment