[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

02/11/2003 at 08:15AM PST, ID: 20509261
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

4.8

Please wait ... Page while loading large data

Asked by kalagappan in Active Server Pages (ASP)

Tags: gif

Hi,
 I have a page that let user can search a large database.  While loading the database, I want to put a animated gif to display "Please wait while loading the database" and after loading the database, this image will kill itself.

  i use the javascript explained by the member Helj
like below

Actually, you can't really do it using ASP since this is a client-side run-time change. What you need to do is make this happen using JavaScript. It's actually pretty easy, so don't worry.

You need to create two 'sections' using the <div> tag, like so:

<div id="divSearch">
  ... insert your code for your search form here ...
</div>

and then you need another div for your please wait display, but this one you mark as hidden, using CSS, like so:

<div id="divWait" style="display:none">
  ... PLEASE WAIT HTML HERE ...
</div>

Now, when you load the page, the HTML in the divPleaseWait area is hidden, and what is in the first div shows up.

What you do is add an onclick() event to whatever triggers your search to start. So if you have a button on a form, for example, add this to your button html:

<input type="submit" name="submit" onclick="showWaitLayer()">

the showWaitLayer() is just a call to a Javascript function that you put in the <head></head> element of your HTML, like so:

<head>
 <script language="JavaScript">
   
   ////////////////////////
   //showWaitLayer function
   ////////////////////////
   function showWaitLayer()
   {
     // this hides the first layer
     divSearch.style.display = 'none';

     // this hides the first layer
     divWait.style.display = '';
   }

 </script>
</head>

That should be all you need to do, and you can pretty much do whatever you want.

The key is to show a layer right before you submit a form that calls another page, this way while your page is loading, you get to see this form. Kinda like the expedia.com website does when you run a search for plane tickets.

My question is, After I use the image instead of the text, the animated image is not anymore animated. It just become the static image.

I made the following modification to the above too

divSearch.style.visibility = 'hidden';
divWait.style.visibility = 'visible';

Also, you'll need to change the references in the div tags themselves, to:

<div id="divSearch" style="visibility:visible">

and

<div id="divWait" style="visibility:hidden">

Still the image is not animated. If anybody can help me, I appreciate that.

Thank you,
Kalagappan
 
Keywords: Please wait ... Page while loading l…
 
Loading Advertisement...
 
[+][-]02/11/03 08:27 AM, ID: 7926573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 08:29 AM, ID: 7926592

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 09:15 AM, ID: 7926981

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/03 09:18 AM, ID: 7927007

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 09:23 AM, ID: 7927046

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 09:24 AM, ID: 7927064

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 09:25 AM, ID: 7927071

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/03 09:25 AM, ID: 7927076

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 09:27 AM, ID: 7927084

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 10:13 AM, ID: 7927454

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 11:58 AM, ID: 7928253

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/03 12:09 PM, ID: 7928353

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 12:12 PM, ID: 7928371

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 12:14 PM, ID: 7928383

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 01:13 PM, ID: 7928834

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/03 01:16 PM, ID: 7928859

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/03 01:48 PM, ID: 7929097

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/03 01:57 PM, ID: 7929178

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 02:00 PM, ID: 7929204

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/03 04:17 PM, ID: 7930124

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/13/03 11:23 AM, ID: 7944268

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/13/03 03:08 PM, ID: 7945764

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/13/03 03:14 PM, ID: 7945791

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/07/03 12:28 AM, ID: 9503806

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/14/03 02:10 PM, ID: 9550293

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: gif
Sign Up Now!
Solution Provided By: YensidMod
Participating Experts: 5
Solution Grade: B
 
 
 
Loading Advertisement...
20091111-EE-VQP-91