Skip to content

Instantly share code, notes, and snippets.

@linkmckinney
Last active August 29, 2015 14:01
Show Gist options
  • Save linkmckinney/52040ea99db826bb7175 to your computer and use it in GitHub Desktop.
Save linkmckinney/52040ea99db826bb7175 to your computer and use it in GitHub Desktop.
/**
* @author Link.McKinney
*/
$(document).ready(function(){
//executes function after page loads in browser
startRefresh();
//creates timer, gets data from page and updates the #myupdate_div dic
function startRefresh() {
setTimeout(startRefresh, 1000);
$.get('includeData.cfm', function(data) {
$('#myupdate_div').html(data);
});
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment