[jQuery] Problem with timer and ajax
I have the following code that seems to work for some people and not
for others. THe page it is retrieving is supplying a piece of data
that is pulled from a database randomly. I have confirmed that the
data is definitely being delivered correctly.
The users who report the problem say that the first piece of data
displays correctly but from the second one on it just displays the
second piece of data over and over. Every time I test the page it
works fine.
Is there someting that could be causing the problem in this code?
$.timer(8000, function (timer) {
$.get(domain + "/includes/randomKidV2", function(randomData){
$("#RandomKid").fadeOut("4000", function(){
$("#RandomKid").html(randomData);
$("#RandomKid").fadeIn("4000");
randomData = "";
});
});
});