Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Progress via Animation or Bar

Status
Not open for further replies.

ISPrincess

Programmer
Feb 22, 2002
318
US
I have an OLE DB query to a Unisys system that can take up to 3 minutes to load data to the "report" page.

I would like to show the user that the system is processing. I don't really want to use a simple progress bar but if I have to - I need help with that also.

What I would like to do is show an animation - like (these are just ideas) a spinning globe, flying folders or spinning letters (Processing...)

I thought that adding animation to asp would be easy - but I am beginning to think it's not as easy as it looks.

Can any one point me in the right direction?

Thank you!
 
Hi

If you put all your ASP code after the html start to the page and created an animated gif you may be able to write that to the page before starting the query (make sure that the server isn't going to buffer the page and spit it out when it has finished processing).

Then the browser would see the animated GIF until the ASP had processed. After your main code you could simply draw a layer over the top of the animation.

I would be interested to see if you can do this. Try it with a simple image or a piece of text first though! Derren
[The only person in the world to like Word]
 
That seems like where I am going but, as a newbie, I need help with your statement:

"After your main code you could simply draw a layer over the top of the animation."

How do I accomplish "hiding" the animation or marquee or whatever?

I am using a marquee because I have no idea how to create or 'get' or 'deploy' and animated gif on asp pages.

Please...
 
You could add your image using this piece of HTML code:

Code:
<div id=&quot;image&quot; style=&quot;position:absolute; left:156px; top:142px; width:249px; height:197px; z-index:1;; background-color: #999966&quot;>Your waiting text or image</div>

Then, at the end of the page and after the ASP code, add this little beauty:

Code:
<div id=&quot;hideimage&quot; style=&quot;position:absolute; left:156px; top:142px; width:249px; height:197px; z-index:2; background-color: #0099CC; layer-background-color: #0099CC; border: 1px none #000000&quot;>This is the same size and postition, so covers the other layer</div>

There are all sorts of other things you could do, such as hide the layer using javascript, but see if it works this way first as it is quick and easy.

Derren
[The only person in the world to like Word]
 
Thank you very much - I will give it a try.

What about &quot;deploying animations&quot;? Am I missing a very simple point? (Obviously, I have not been formally trained in ASP and am a 'learn-it-while-you-go' type of person.)


BTW
I posted a question regarding reports in ASP, and since you are &quot;the only (other) person in the world to like Word&quot; - maybe you could take a look at that and give me some more of your wonderful insights!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top