I am using the .load() function like this:
<script>
$(document).ready(function() {
$.ajaxSetup({ cache: false });
$("#id").load('file.php');
var refreshId = setInterval(function() {
$("#id").load('file.php?randval='+ Math.random());
}, 4000);
});
</script>
It works perfectly in FF and Chrome. It also works perfectly in IE7.
BUT:
It displays an error message in the bottom bar of IE7 which says:
The object does not support this property or method.
I guess this is because IE7 doesn’t support the .load() function.
Is there any way to get rid of this message? It looks really ugly and I’m not sure my boss will approve.
EDIT:
I found the reason!
It was because I used the online version of jQuery.
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
It works fine if I switch to a local copy of jQuery.
<script type="text/javascript" src="custom/js/jquery-1.7.1.js"></script>
I found the reason!
It was because I used the online version of jQuery.
It works fine if I switch to a local copy of jQuery.