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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Progress Bar

Status
Not open for further replies.

JrClown

Technical User
Oct 18, 2000
393
US
I need help on either creating and or using a Status Bar.

I need to place one on an asp results page that is taking a bit longer to load. Any help would be appreciate it. QUOTE OF THE DAY
I will prepare, and some day my chance will come.
Abraham Lincoln

<%
Jr_Clown :eek:)
%>
 
I will assume you want a 'progress bar' not a 'status bar'.

This is a large topic.

1) A true progress bar accurately depicts the percentage of completion of the operation. Unless you can do that then the best you can do is show something that keeps the user from thinking the request has locked up.

2) Even if you can't calculate the percentage you still need to have control of the code to programmatically change the progress display, i.e., if your script is blocked in an ADO database query it can't update the browser output stream to change the progress display.

3) To show something that pacifies the user there are many different techniques most of which employ client side script and/or dhtml to display the UI features. For example you can use a <div> and modify the width dynamically by sending client script code blocks to the browser stream.

If any of this makes sense to you I will be glad to help further once you narrow down the scope a bit.

-pete
 
Excuse my stupidity LOL. I did mean a progress bar. I actually don't want to create something too confusing I just need to &quot;show something that keeps the user from thinking the request has locked up&quot;. as you mention. Could you please advise me on how to accomplish this ? Thanks Pete

QUOTE OF THE DAY
I will prepare, and some day my chance will come.
Abraham Lincoln

<%
Jr_Clown :eek:)
%>
 
> Could you please advise me on how to accomplish this ?

Well I would not call this ADVICE but I have a sample of doing this on my site that runs in IE 5 and NS 4.6. You can view the source code as well. I believe the sample is called 'Progress Bar'.


Hope this helps
-pete
 

Thank you Pete QUOTE OF THE DAY
I will prepare, and some day my chance will come.
Abraham Lincoln

<%
Jr_Clown :eek:)
%>
 
I also use the following code:

' btw, ASP buffering should be off
<html>
<head>
</head>
<body>
<div id=&quot;myWaiting&quot;>some graphics that looks like progress bar</div>

<%
' here goes the slow-executing bulky script
%>

<script>
document.all.myWaiting.style.display=&quot;none&quot;;
// or you can put this in <body onload=&quot;&quot;>
</script>

</body>
</html>

This is not a real &quot;progress bar&quot; solution, but I hope this will help you. My users dont complain ;).
---
---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top