how about break one big table to several small
tables with the same amount of collums? You can hide the outer border so
the user will think that is one table.
----- Original Message -----
Sent: Tuesday, September 16, 2003 12:36
PM
Subject: Re: Well to help all your bored
servlet developers...
On Tue, 2003-09-16 at 12:35, Ross Rankin wrote:
J
I need some help.
I have a servlet that generates about 150 items and
creates an HTML table. It takes about 45 - 60 seconds to run.
First,
I would like to create pages with 20 - 30 items per page. I through of a way
to do this with _javascript_ and DIV tags but we know why that isn't the best
solution for multi-browser support and doesn't help with the issue
below.
Second, I would like to provide the illusion of speed where as
soon as the servlet is done with the first 20 results, throw up the HTML and
let the process keep going with the other 130 while the users looks at the
first 20. I don't think you can
do that. See, the HTML engine in your browser will only start rendering
the table on the screen unless it encounters the </table> tag. I
could be wrong but I really don't think there is a way to start displaying a
table without having all the table elements and a closing tag. I would
recommend either getting all the elements for the table in advance in a
different thread while the user is busy doing something else if this is
possible. Then when the user requests the table all you have to do is
just construct your table with the elements that you have already
prefetched.
-Pete
--
perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")' | ___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of
the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
|