response.flush and AJAX

response.flush and AJAX

am 12.06.2007 20:45:37 von asleepatdesk

I am still maintaining/developing a classic ASP application. I have
recently built into the app architecture AJAX functionality which
works pretty well.

The issue: a client wants a report built which could potentilly be
huge, up to 5000 rows. My plan is to get the data via an ASP script
and response.flush back a delimited string of data (every 100 rows)
to
be formatted into html by the javascript and displayed in order to
avoid the appearance of application inactivity to the user.


The problem: I cannot seem to get the data flushed back every 100
rows
- it seems to simply do a dump once the entire delimited string is
compiled. I have done flushes the old way without AJAX and it works
fine.


Does anyone know of any limitations when flushing the buffer via
AJAX?


BTW, I am aware of the

tag limitation with response.flush so
that is not the problem.

Re: response.flush and AJAX

am 12.06.2007 23:25:52 von Anthony Jones

"asleepatdesk" wrote in message
news:1181673937.130061.41620@n15g2000prd.googlegroups.com...
> I am still maintaining/developing a classic ASP application. I have
> recently built into the app architecture AJAX functionality which
> works pretty well.
>
> The issue: a client wants a report built which could potentilly be
> huge, up to 5000 rows. My plan is to get the data via an ASP script
> and response.flush back a delimited string of data (every 100 rows)
> to
> be formatted into html by the javascript and displayed in order to
> avoid the appearance of application inactivity to the user.
>
>
> The problem: I cannot seem to get the data flushed back every 100
> rows
> - it seems to simply do a dump once the entire delimited string is
> compiled. I have done flushes the old way without AJAX and it works
> fine.
>
>
> Does anyone know of any limitations when flushing the buffer via
> AJAX?
>
>
> BTW, I am aware of the

tag limitation with response.flush so
> that is not the problem.
>

I haven't tested on other browsers but in IE which uses MSXML there is no
way to get at any of the response until all the response has been received.

The only component I know of that may enable this is WinHTTP. However I
wouldn't recommend it. Instead you should consider re-designing to allow
report results to be fetched in chunks with multiple requests.