now nothing is happening....no image, no ajax load, no nothing....
Code:
$(document).ready(function() {
var myImage = new Image();
myImage.onload = function() {
// here the image has finished loading
$.ajaxSetup({
beforeSend: function() {
$('#newsContent').append(myImage);
}
});
$.ajax({
type:"POST",
url:"news_load1.php",
data:"getNews=true",
success: function(r) {
$('#newsContent').html(r);
},
...
});
};
myImage.src = 'pics/loadingAnimation.gif';
});
I also need it in the bo div because that fills the entire page, the newsContent fills only the top half of page.