Solved

page refresh or display waiting in asp

Posted on 2001-07-08
6
218 Views
Last Modified: 2010-05-18
Hi,  Im using an asp page that runs a bunch of things on the server.  It is initiated by the user clicking a button on the page.  Because this takes a while, I want to display a simple message on the page to say that is is currently working.  Now, whatever I write doesn't appear on the screen until the process is complete.  Any Ideas?
0
Comment
Question by:b9frosty
6 Comments
 
LVL 5

Expert Comment

by:mattyk
ID: 6262398
The most foolproof way to handle this is to have your hyperlink go to an intermediate html page which would look something like this

<script>
window.location="yourASPpage.asp"
</script>
<body>
Please Wait Loading Page...
</body>


of course the page can say look like anything you'd like.

-matty
0
 

Author Comment

by:b9frosty
ID: 6262423
Is it possible to keep the same page visible that I have and just add a line that says "Please Wait"?  I'm not sure I can do it since the page has already been sent to the browser unless I can append it throught the asp.  If not, I'll do it the way you described.  Thanks.
0
 
LVL 9

Expert Comment

by:TTom
ID: 6262554
If you don't mind using the status bar, you can do something like this:

At the top of your ASP code (right under the language designation), add:

<%response.buffer=true%>
<script>
<%response.write "status='Loading this Page'"%>
</script>
<%Response.Flush%>

Then, in the <BODY> tag, add, "onload='status="Done;"'" (without the outside "s).

You can also use this script to open a popup window which closes when the page is finished loading.

You could probably do something similar using a <div> which you could flush down to the browser and then remove from the display when the page was loaded.  Michel Plungjan (mplungjan) has posted JavaScript code for such an item.  If this seems promising I can look around for the code.  It functions like a popup window.

Tom
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 6

Expert Comment

by:andyclap
ID: 6263028
You could turn buffering off for your page, and avoid putting results in tables (most browsers have to receive the whole table before it can work out how to render it).
0
 
LVL 33

Expert Comment

by:hongjun
ID: 8622521
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[PAQ with NO REFUND]

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

hongjun
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8674279
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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 information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now