Author |
Topic |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 30 April 2002 : 23:59:52
|
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
|
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 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 01 May 2002 : 00:39:37
|
hadn't thought of that. I'll just get rid of the table altogether and display it differently. Thanks. |
|
|
Chiz
Junior Member
245 Posts |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 01 May 2002 : 02:17:17
|
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. |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 01 May 2002 : 02:31:14
|
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 |
|
|
Chiz
Junior Member
245 Posts |
Posted - 01 May 2002 : 02:37:41
|
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 |
|
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 01 May 2002 : 02:42:17
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 01 May 2002 : 02:52:50
|
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 ! |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
|
Chiz
Junior Member
245 Posts |
Posted - 01 May 2002 : 03:03:19
|
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
|
|
|
|
Topic |
|