Solved

page refresh or display waiting in asp

Posted on 2001-07-08
6
223 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EOF BOF error classic asp 8 46
Error in query expression 3 42
ASP/VB email question 4 33
Writing comments on <p></P> or paragraph 2 12
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
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/…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 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