473,414 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

help... response.buffer not working

I havent used this before... shouldn't this code produce one line at a time?

It doesn't... all 10 lines come at once.

What am I missing?

<%
response.buffer = true
dim x
dim wait
%>
<html>
<head>
<title>flushTest.asp</title>
</head>
<body>
<%
for x = 1 to 10
response.write timer & "<br>"
response.flush
wait = timer + 1
while wait > timer
wend
next
%>
</body>
</html>

Jul 19 '05 #1
2 1968
you are only waiting 1 millisecond.

try
wait = timer + 1000

BTW: You should never use a delay loop like this on a production site. It
will soak up all available processor capacity. Time delays in ASP page
scripts generally to not make sense, but there are some components available
that do a proper wait using winapi calls.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"yabba" <ya****************@bigfoot.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
I havent used this before... shouldn't this code produce one line at a time?
It doesn't... all 10 lines come at once.

What am I missing?

<%
response.buffer = true
dim x
dim wait
%>
<html>
<head>
<title>flushTest.asp</title>
</head>
<body>
<%
for x = 1 to 10
response.write timer & "<br>"
response.flush
wait = timer + 1
while wait > timer
wend
next
%>
</body>
</html>

Jul 19 '05 #2
Aren't the milsecs *after* the decimal? It takes 10 secs to run and the
problem is the same.

And yes, this is just a simple demo and I would not otherwise use such a delay
loop.

Do you have any help?

In article <ev*************@TK2MSFTNGP12.phx.gbl>, ms*****@ielearning.com
says...

you are only waiting 1 millisecond.

try
wait = timer + 1000

BTW: You should never use a delay loop like this on a production site. It
will soak up all available processor capacity. Time delays in ASP page
scripts generally to not make sense, but there are some components available
that do a proper wait using winapi calls.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"yabba" <ya****************@bigfoot.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
I havent used this before... shouldn't this code produce one line at a

time?

It doesn't... all 10 lines come at once.

What am I missing?

<%
response.buffer = true
dim x
dim wait
%>
<html>
<head>
<title>flushTest.asp</title>
</head>
<body>
<%
for x = 1 to 10
response.write timer & "<br>"
response.flush
wait = timer + 1
while wait > timer
wend
next
%>
</body>
</html>



Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jose | last post by:
Can anyone help? I try to put all my function in a separate .ASP file under scriptlib folder but when I call any function from the such asp file do not work meanwhile if I put the code inside...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
3
by: Salvador | last post by:
Hi, I am using an old Win32 DLL that expects a LPBYTE as a parameter. The Stringbuilder appears to be working, the problem is that the component is sending me a string with NULL characters in the...
1
by: SevDer | last post by:
Hi, I am trying to write a simple application which copies the predefined files (hardcoded in the code) to my ftp server. I couldn't make it working. I don't want to use any 3rd party...
2
by: hoenes1 | last post by:
I've got an aspx-Page "SendFile.aspx" which is called by a Link on "ShowListOfFiles.aspx" and sends the file in the OnLoad Eventhandler. The filename to download is stored in a Session variable....
7
by: Peter Row | last post by:
Hi, I've started work on my own control some parts of which use standard controls, others I need to draw on my controls surface to get the display output I require, however.... I seem to be...
6
by: john | last post by:
The standard method to transmit a file from an aspx page to a browser is to stream the file to the response then end the response. The HTML code generated by the aspx page is discarded, and the...
1
by: Gurpal | last post by:
I'm getting this error when I test this page. Here is the error: Response object error 'ASP 0251 : 80004005' Response Buffer Limit Exceeded /test/test4.asp, line 0 Execution of the ASP...
3
by: Brad | last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and response.binarywrite to send content to the browser. This has worked great for years...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.