Code: Select all
function refreshQuote() {
setTimeout("refreshQuote()", 7000);
$("#Quote").hide("slow", function() {
$(this).load("/quote/random/").ajaxComplete(function() {
$(this).show("slow");
});
}
}I assume that there is a proper way to set up a nice loop in Javascript without memory leaks, but I'm at a loss. Can anyone offer a suggestion?