Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Problems with Response.Flush
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 April 2002 :  23:59:52  Show Profile
I am working with a script where I want to display data as it is processed. This particular process is going through around 15,000 records in a database and I am outputing a Table Row after each one is processed that shows Record #1 of 15000 has been processed, etc...

But, the page is blank. If I do a view source, I see all of the HTML, but none of it is being displayed in the browser until after the page is done processing. I am using Response.Flush after each record is processed. It is flushing the contents, but why isn't it displaying on the page?

Is there another way to do this with javascript maybe? Have a running counter on the page that I can update so it will read:

Record #1 of 15000 has been processed. (then the 1 will be incremented each time I process a record, by calling the javascript?)

Nathan
Help Moderator

USA
7664 Posts

Posted - 01 May 2002 :  00:34:16  Show Profile  Visit Nathan's Homepage
Quite possibly it is the browser’s rendering engine itself that is causing the bottleneck.

I believe many modern browsers will wait for the complete content of a table before rendering it so that it can get the proportions correct on the first shot (speeds things up) If that’s the case, you might experiment with breaking the table up into smaller tables?

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 01 May 2002 :  00:39:37  Show Profile
hadn't thought of that. I'll just get rid of the table altogether and display it differently. Thanks.
Go to Top of Page

Chiz
Junior Member

245 Posts

Posted - 01 May 2002 :  01:49:52  Show Profile
Could it be because of the Response.buffer property set to True?

My websites: PalmVenue :: PV Mobile
My Snitz MODs: Categorized Icons
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 01 May 2002 :  02:17:17  Show Profile
It has to be set to True to be able to use Response.Flush.

The problem was just as Nathan said, once I took everything out of a table, it displays like it should.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 01 May 2002 :  02:31:14  Show Profile  Visit Gremlin's Homepage
Had the same problem a couple of days ago, came to the same conclusion as you guys did and just ripped out my tables too.

www.daoc-halo.com
Go to Top of Page

Chiz
Junior Member

245 Posts

Posted - 01 May 2002 :  02:37:41  Show Profile
OK. So it means that browsers won't be displaying the content until such time that it encounters the closing table tags such as </td>, </tr>, </table>?

quote:
The problem was just as Nathan said, once I took everything out of a table, it displays like it should.

But for some pages, it would mess up the layout, right?

Sorry for my having a lot of questions today...

My websites: PalmVenue :: PV Mobile
My Snitz MODs: Categorized Icons


Edited by - Chiz on 01 May 2002 02:43:53
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 01 May 2002 :  02:42:17  Show Profile  Visit Nathan's Homepage
quote:
OK. So it means that browsers won't be displaying the content until such time that it encounters the closing table tags such as </td>, </tr>, </table>?
No, if the browser gets to the end of the page and it cant find the closing tags, it adds them. Netscape even adds them to the "source" when you click "view source" (along with a buncha other junk) It wouldn't case a problem, it would just mean that nothing inside that table would be rendered untill the entire page was downloaded. . .

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 May 2002 :  02:52:50  Show Profile
I also wanted to do this as well, in a script. Think I will try this out.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 May 2002 :  03:00:55  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
but if for some reason you need it in a table you could just then make each record a table.

Brad
Web Hosting with SQL Server @ $24.95 per month
Go to Top of Page

Chiz
Junior Member

245 Posts

Posted - 01 May 2002 :  03:03:19  Show Profile
quote:
No, if the browser gets to the end of the page and it cant find the closing tags, it adds them. Netscape even adds them to the "source" when you click "view source" (along with a buncha other junk) It wouldn't case a problem, it would just mean that nothing inside that table would be rendered untill the entire page was downloaded. . .
Thanks for the info, Nathan.

My websites: PalmVenue :: PV Mobile
My Snitz MODs: Categorized Icons
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07