W3C home > Mailing lists > Public > www-html@w3.org > June 2001

Re: Non-scrolling portions of my CGI generated tables

From: Darren Ferguson <darren@crystalballinc.com>
Date: Tue, 5 Jun 2001 13:41:16 -0400 (EDT)
To: Len Schultz <len@yumyuk.com>
cc: www-html@w3.org
Message-ID: <Pine.LNX.4.10.10106051335240.17189-100000@thread.crystalballinc.com>
You would not have to run the script twice if you used frames since
you can open more than one file for writing using the CGI script.

So you could write the framed page with the two src's. Then you would
write the top one with the table header and then the bottom one with the
information from the database.

You would then send a HTTP 302 header and redirect the user to the framed
page and the browser would do the rest.

Note though that the way you are doing this is not ideal but the way i
have said above would give you the frames section.

I would definately try and figure out a better way to do this. You could
try multipage lists where by the script writes all the files and you
display the first 10 and have numbers determining where you want to go in
the pattern that came from the database. 

You could either reinteract with the database and get 10 - 20 etc and
there for the top of the table unless the fields are really large would
still be visible.

Darren Ferguson

On Tue, 5 Jun 2001, Len Schultz wrote:

> Hello,
> I have been trying to solve this problem for months with little luck, so I
> am looking for some help in this forum.
> I have a complicated CGI script that accesses a database and returns
> information in a table format (e.g. header and body).  I would like to have
> the table header fixed within a browser window, and have the scroll bar only
> scroll through the body.
> What is a good way to do this?
> I thought about frames, one frame for header and one for body.  But frames
> are limited to pointing each of the frames to a url.  This requires me to
> have one URL for the header and one for the body.  This would imply that my
> CGI script runs twice to get the same answer.  This is bad, as my CGI script
> takes a while to calculate the table.
> Ideally, I could have one CGI script return HTML one time that has sections
> specified as non-scrolling.  Does anyone know how to do this?
> --len
Received on Tuesday, 5 June 2001 13:43:37 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 30 April 2020 16:20:43 UTC