The simple form of AJAX is a method .get()that should be sufficient for your needs.
First of all, add a placeholder in your HTML where the loading image will appear, when you load the content, this content will be placed instead of the image.
For instance:
<div id="ContentsPlaceholder"></div>
jQuery :
$(function() {
$("#ContentsPlaceholder").html("<img src='Loading.gif' />");
$.get("GetData.asp", function(contents) {
$("#ContentsPlaceholder").html(contents);
});
});
"Loading.gif" , "GetData.asp", , .