Re: OT - Web page (html) question



On May 20, 4:19 pm, bill horne <redy...@xxxxxxx> wrote:
GingerJools wrote:
On May 20, 3:10 pm, bill horne <redy...@xxxxxxx> wrote:
GingerJools wrote:
On May 20, 2:21 pm, bill horne <redy...@xxxxxxx> wrote:
Some web pages have stuff that stays in the same place on the screen
even when the page is scrolled. Seehttp://www.merck.com/mmhe/sec06/ch078/ch078d.html#sec06-ch078-ch078d-162
for an example.
There are some web pages that have data in rows and columns, with the
first row being the column headers. If I were to write to a webmaster
to tell him that the first row - the column header row - needs to stay
visible when the page is scrolled, what would be the short technical
description of what he needs to do to that first row?
In Excel, for example, it's called "Freeze pane".
--
bill
Theory don't mean squat if it don't work.
Are you talking about the "Opioid Analgesics" table?
Ginger
No, I'm specifically concerned with Consumer Reports ratings pages -
but if I were talking about the "Opioid Analgesics" table, I'd want
the "Drug  Length of Effectiveness         Comments" row to stay on the
screen as I scrolled down the table.

--
bill
Theory don't mean squat if it don't work.- Hide quoted text -

- Show quoted text -

Short answer is it's complicated.

First of all, there are logistical differences between a spreadsheet
and a web page beyond the obvious superficials of formatting.  This
makes a simple thing like freeze pane not translatable to web pages.

Although there are "tables" comprising rows and columns in HTML (the
text language for formatting web pages), they do not have a freeze
pane feature.

The simple way to fake it would be to use frames.  The sample you
posted has a vertical frame down the left side where the navigational
links reside.  Its content stays locked whilst the right hand frame
scrolls.  A frame behaves much like an independant web page sharing
the screen with another web page.

To accomplish frozen headings, one would  put the headings in a frame
across the top of the web page and the data in a frame underneath.
The two frames would of course scroll independently.  (In fact the top
frame wouldn't scroll at all.)

However, this page is much more complex.  The table is buried inside a
web page with stuff above and below.  So we can't use a horizontal
frame for the headings since this would result in the headings
persisting for all content.

So now we must take the right hand frame and build a subset of frames
stacked vertically within the right hand frame so that the stuff above
the table is in one sub frame, the two frames for the headings and
data are in another sub frame, and finally the stuff below the table
would be in the third sub frame.  The table frames would actually be
sub-sub frames.  It gets complicated fast, but it would be doable.  I
wouldn't design it that way though since the table isn't so
complicated as to require frozen headings.  Maybe if it had 10 or 15
columns with similar data I would.

If the web designer wanted to use a language such as Java or Flash to
build, format and display "frozen" headings they could probably write
code to accomplish this.  I'm not that experienced to say for sure but
I would be very surprised if it were not doable.

For this table, only three columns, the cost in complexity, design
time, and loss of flexibility wouldn't be justifiable.  IMHO.

Hope that helps.

If not, ask another question.

Ginger

If "frozen headings" is the accepted term among web page designers,
that's what I'm looking for. If it is, thanks.
As Pepperoni provided, this is a better example:http://www.tvguide.com/listings/

--
bill
Theory don't mean squat if it don't work.- Hide quoted text -

- Show quoted text -

My bad, that is a good example, the frame does scroll. This is
multiple levels of nested frames.

Ginger
.



Relevant Pages

  • Re: OT - Web page (html) question
    ... first row being the column headers. ... posted has a vertical frame down the left side where the navigational ... To accomplish frozen headings, one would  put the headings in a frame ... The two frames would of course scroll independently. ...
    (rec.outdoors.rv-travel)
  • Re: OT - Web page (html) question
    ... first row being the column headers. ... Its content stays locked whilst the right hand frame ... To accomplish frozen headings, one would put the headings in a frame ... The two frames would of course scroll independently. ...
    (rec.outdoors.rv-travel)
  • Re: OT - Web page (html) question
    ... Its content stays locked whilst the right hand frame ... To accomplish frozen headings, one would put the headings in a frame ... The two frames would of course scroll independently. ... For this table, only three columns, the cost in complexity, design ...
    (rec.outdoors.rv-travel)
  • Re: OT - Web page (html) question
    ... first row being the column headers. ... posted has a vertical frame down the left side where the navigational ... frame for the headings since this would result in the headings ... that scrolls up and down. ...
    (rec.outdoors.rv-travel)
  • Re: Setting the scroll bar to a certain level?
    ... to render one image. ... Then in the second i have one iframe. ... src of this frame i try to render some other appliction running on ... with three TRs should have scroll bar if necessary and if the content ...
    (comp.lang.javascript)