473,765 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

response.flush and AJAX

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 <tabletag limitation with response.flush so
that is not the problem.

Jun 12 '07 #1
1 3416

"asleepatde sk" <st***@scoleman .netwrote in message
news:11******** *************@n 15g2000prd.goog legroups.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 <tabletag 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.
Jun 12 '07 #2

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

Similar topics

0
2594
by: Copa | last post by:
Hello, I am testing buffering an asp page and Flushing information out to the browser, hence i wrote the code in an asp page that follows this Message Post. The loops are suppose to simulate long search processes with a flush after each search. When i Navigate to the page, redirect to it from another page, or type the URL to this page in the browser, the page is buffered until it reaches the end of the file and is then displayed all at...
7
7004
by: Jon Spivey | last post by:
Experimenting with response.flush() but can't seem to get it to work. This code <% response.write "<p>started</p>" response.flush() for i = 1 to 10000000 i = i +1 next response.write "<p>ended</p>" %>
9
4145
by: Dominic Godin | last post by:
Hi, I have an asp page that does a lot of processing and reports it's finished by printing the word "Success". For example: <% SomeFunction(SomeVar) SomeFunction(SomeVar1) SomeFunction(SomeVar3)
5
2506
by: Luiz Vianna | last post by:
Guys, I need to send some info to my client while I'm processing some stuff. The flow will be something like : -process -response -process -response .... I imagine to use response.flush (as I did on ASP) but it does not work. See my test code, after sending 2 lines on response, I'm simulating a processing time before sending other 2 lines.
6
7388
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 browser displays or offers to save the binary file instead. I would like to have the browser accept and display the revised HTML code as well as offering to open or save the attached file. This SHOULD be possible using a multipart MIME format -...
1
3080
by: Volte | last post by:
Hey all. Been looking into this for a while now, got some mock ups and whatnot. All works well (as far as the server "streaming" the data, via a sleep and flush method right now just for functionality. Only Ajax doesnt seem to appreciate it. Still caches the buffer and dumps it out at once. I was wondering if you guys had any insights on this. Here is the code. header("Content-type: multipart/x-mixed-replace;boundary=endofsection");
12
7916
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug it, it works every time! I even set it to True, but did a .Flush just before the error, and the error won't happen. It only happens when response.buffer is True and no .response.flush is issued. The error is a string variable turns-up empty...
4
7473
by: evgenyg | last post by:
Hello ! We have the following situation - when Ajax request is sent what's being returned by the server is usually an XML (which is used for DOM updates) but sometimes it's HTML which is a whole new page that should replace an existing one. I.e when we issue an Ajax request we don't know what will be returned and analyze the response to act accordingly. Now, the way to replace the current document with a new one used to be easy and...
0
1638
by: ronc85 | last post by:
My environment is ASP.NET 2.0, C# and AJAX. I'm having a problem with 'Button Click' logic which is trying to display a Gridview and then use XML/XSLT to build an Excel file. The following code does not display the Gridview but opens the created file in Excel.If I comment out the ExportDatasetToExcel routine the Gridview displays correctly. I'm assuming the problem is something to do with the Response methods.
0
9399
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9835
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5276
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.