show loading message while loading contents in asp using jquery ajax
In my asp site i'm trying to fetch user details from Active directory on page load. I like to show "loading.gif" image untill I get details. Could some help me as i'm new to jquery Simple form of AJAX is the .get() method which should be enough for your needs. First of all, add a placeholder in your HTML where the loading image will appear then when you have the contents loaded, those contents will be placed instead of the image. For example: <div id="ContentsPlaceholder"></div> The jQuery code would now be: $(function() { $("#ContentsPlaceholder").html("<img src='Loading.gif' />"); $.get(