I have the following jquery code:
$(".rotateNews").load("/load_news.php");
var refreshId = setInterval(function() {
$(".rotateNews").load('/load_news.php?newsID=');
}, 5000);
This refreshes a div with the class rotateNews
with load_news.php every 5 seconds. load_news.php pulls a random news article from a MySQL database. I need a way to track the previously loaded news article and pass it back to this function (or pass it back to load_news.php, which is the ultimate goal). Is there anyway to do this?