Forum Moderators: open
You could achieve what you're looking for by using frames - probably an <IFRAME> would serve you best. Run a search for <IFRAME> and you'll see how it works. The main page gets the header and the framed page gets the data.
G.
I had thought about using frames also but we irk on the side of a nonframed site. But adaptable as we have to be I would consider it if i could get the right results.
I have 60 tables to format. Could I implement different framsets for each table? within a non framed site so when a user clicks the back button or links to a non framed area the frames would dissapear?
In short only have frames present when a table page is open.
Ta
--------------------------------------------
Grumpus, I see what you mean with the Iframes now - I think this will work just how Imagined.
thanks.
There is a very useful tool in MS Excel where large sections of tabulated data can have the title rows 'frozen' so the subsequent rows below appear to run underneath as you scroll down.
Theoretically speaking, that is the ratonale behind the thead and tfoot [w3.org] elements in HTML. I don't know of any browser that supports it, though.
Purple Martin's idea is what I would go with.
I was told NS 6 supported those tags, but did not check myself.
You're right, it works:
<table>
<thead>
<tr><th>head 1</th><th>head 2</th></tr>
</thead>
<tbody style="height: 200px; overflow: auto;">
<tr><td>column 1</td><td>column 2</td></tr>
[... repeat a lot of times ...]
<tr><td>column 1</td><td>column 2</td></tr>
</tbody>
</table> Cool.
Thinking about it, were those tags not just for repetition of footer and header when printing?
Nope. From the specification [w3.org]: "This division enables user agents to support scrolling of table bodies independently of the table head and foot. When long tables are printed, the table head and foot information may be repeated on each page that contains table data." [emphasis mine].