Okay, I am loading a div from one page to my current page with the .load function:
<code>
$(document).ready(function(){
var myUrl = "test.php"
$("#tags-load").load(myUrl + " #tags");
$("#share-load").load(myUrl + " .shareinload");
$("#comments-load").load(myUrl + " #comments");
});
</code>
Here is my problem, the above method doesn't work in IE 8 and lower, but does work in IE9 and Chrome and Firefox.
I did a bit of messing around and found that the above code can work in IE8 BUT only if I am not calling any images from the test.php (neither img tag images nor background images). Then I checked the HTTP codes to see if I was getting an error there, it turns out I was getting a 304 error when ever an image was being loaded. This led me to believe that IE8 must be having some kind of hangup while caching the images. So I altered my code to turn off caching for jquery requests:
<code>
$.ajax({
cache: false
});
$(document).ready(function(){
var myUrl = "test.php"
$("#tags-load").load(myUrl + " #tags");
$("#share-load").load(myUrl + " .shareinload");
$("#comments-load").load(myUrl + " #comments");
});
</code>
Despite altering the code, I am still getting 304 errors. I'm pretty new to Jquery and I'm stuck here, if anyone could help me find a solution to this it would be greatly appreciated,
thanks