Skip to content

Instantly share code, notes, and snippets.

@chrisjung-dev
Created July 6, 2012 08:40
Show Gist options
  • Save chrisjung-dev/3058984 to your computer and use it in GitHub Desktop.
Save chrisjung-dev/3058984 to your computer and use it in GitHub Desktop.
reloading script for DokuWiki
$(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