Created
August 9, 2017 21:19
-
-
Save kenseii/62908949784f60c1c5affadd1390164f to your computer and use it in GitHub Desktop.
use a div and a .get with jquery to get your data from another page on your website.
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() { | |
startRefresh(); | |
}); | |
function startRefresh() { | |
setTimeout(startRefresh,1000); | |
$.get('pagelink.php', function(data) { | |
$('#content_div_id').html(data); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment