Page Loading Indicator

Posted on 2007-07-25
Medium Priority
Last Modified: 2008-02-01
I have an ASP page that takes approximately 45 seconds to load.  When loading the data, I would to display an animated GIF that indicates the page is being loaded.  I have tried several methods but I can't seem to display the image while the ASP loads.  Any information would be greatly appreciated.  Thank you.
Question by:TheChos
  • 2
LVL 14

Accepted Solution

bugs021997 earned 1000 total points
ID: 19567086
Check this site....this should help you code...

LVL 14

Expert Comment

ID: 19567105
In the code below instead of the text Please Wait, you can add the image....

<BODY onLoad="cacheOff()">
    <STYLE TYPE="text/css">
    #cache {
    position:absolute; left=10; top:10px; z-index:10; visibility:hidden;
    Lines above are creating a layer which show a message
    displaying the 'PLEASE WAIT ... ' message
    <SCRIPT LANGUAGE="JavaScript">
    ver = navigator.appVersion.substring(0,1)
    if (ver >= 4)
          document.write('<DIV ID="cache"><TABLE WIDTH=400 BGCOLOR=#000000 BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><FONT FACE="Arial, Verdana" SIZE=4><B><BR>PLEASE WAIT ... <BR><BR></B></FONT></TD> </TR></TABLE></TD> </TR></TABLE></DIV>');
          var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
          var HIDDEN = (navi) ? 'hide' : 'hidden';
          var VISIBLE = (navi) ? 'show' : 'visible';
          var cache = (navi) ? document.cache : document.all.cache.style;
          largeur = screen.width;
          cache.left = Math.round(100);
          cache.visibility = VISIBLE;
    function cacheOff()
          if (ver >= 4)
                cache.visibility = HIDDEN;

Author Comment

ID: 19567283
Very nice!  Thank you.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question