Response.Flush

J

Jason

I am using response.flush in order to display "Please
wait" message. The problem is that it takes about 15 to
20 seconds for the message to appear. How can I make
this appear as soon as the user accesses the page. I am
using response.buffer = true as well.

I have about five include files on the page.


<body bgcolor="#FFFFFF" text="#000000">
<script>
<!--
if (document.all)
{
document.write("<span id=w>");
document.write("<table width=100%>");
document.write("<tr><td>&nbsp;</td></tr>")
document.write("<tr><td
align=center><b>Please wait while we compile your
report...</b></td></tr>")
document.write("<tr><td align=center><img
src=images/wait.gif></td></tr>")
document.write("</table>");
document.write("</span>");
}
//-->
</script>
<% Response.Flush() %>
 
M

Mark Schupp

Do the include files contain code that executes before the client-side
script block is written out?
 
J

Jason

I found the problem. I put the "Please wait text at the
top of my page before my include files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top