I have been messing with this code for quite some time, works in FF, Chrome, Safari but IE for some reason will only load one time. I have tried using the time function as well as the math.random function in the querystring to make the URL unique. I used firebug to make sure that my math.random function was working correctly and it seems to be but for some reason IE will only load the page once. I am about to pull my hair out and abandon the whole idea, please help!!
Code below:
$.ajaxSetup ({
// Disable caching of AJAX responses
cache: false
});
var myHandle = setInterval(function () {
$.ajax({
type: "POST",
url: 'randomize2.php?ck=' + Math.random(),
cache: false,
success: function (data) {
// data is ur summary
$('#dispeople').html(data);
}
})
}, 2000);
var mybutton2 = document.getElementById("mybutton2");
upon your suggestion I checked out the IE developer tools and found the code was breaking further down the page in the following code block:
$(function() {
setInterval(function() {
$('.all').quicksand( $('.warm li'), {
duration: 1000,
attribute: 'id',
easing: 'easeInOutQuad'
});
e.preventDefault();
}
}, 5000);
});
Now that I’ve formatted the code, an error (perhaps not the error) jumps out:
I can’t imagine Chrome or the others running that code.