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
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
The jQuery code would now be:
This will put “Loading.gif” image in the placeholder then load data from page called “GetData.asp”, and when the data is available it will put it instead of the image.