
May 23rd, 2006, 11:15 PM
| | | Freeze Table Headers.
Hello all.
There is what i would like to do, I have a page that pulls all the
hours for our staff over a given period calculated them and reports
back on 15 different colums and is aproximatly 500 individual rows of
data for a table. Now as you could imagine that is a night mare to look
at for anyone, i have done a few things to make remeber which columns
are which however a simple Solution would be to the top row, or rows i
define stay constantly at the top as your scroll down.
This is classic ASP and not ASP.NET, I can find alot of resources for
ASP.NET but nothing for ASP.
I have considered Frames, but who really wants to mess around with that
ad there are alot of controls at the top of the page that manipulate
the data.
Also i have heard of using JavaScript or CSS, Has anyone achieved this
before?
I am not sure if you need my code or not as this is just classic table
design
Thanks In Advance | 
May 24th, 2006, 08:15 AM
| | | Re: Freeze Table Headers.
Nico VanHaaster wrote:[color=blue]
> Hello all.
>
> There is what i would like to do, I have a page that pulls all the
> hours for our staff over a given period calculated them and reports
> back on 15 different colums and is aproximatly 500 individual rows of
> data for a table. Now as you could imagine that is a night mare to look
> at for anyone, i have done a few things to make remeber which columns
> are which however a simple Solution would be to the top row, or rows i
> define stay constantly at the top as your scroll down.
>
> This is classic ASP and not ASP.NET, I can find alot of resources for
> ASP.NET but nothing for ASP.
>
> I have considered Frames, but who really wants to mess around with that
> ad there are alot of controls at the top of the page that manipulate
> the data.
>
> Also i have heard of using JavaScript or CSS, Has anyone achieved this
> before?
>[/color]
Personally, I would consider paginating the results, but if you really
want to present 500 rows on a page then you could have a look at http://underscorebleach.net/jotsheet...ith-css-layout
which uses css to apply a framelike appearance. Apparently this
doesn't work in all browsers, so you might want to google about a bit.
If you are intent on a client-side solution (frames/javascript/css) you
would be better off taking your question to a more appropriate group.
--
Mike Brind | 
May 24th, 2006, 08:55 AM
| | | Re: Freeze Table Headers.
Nico VanHaaster wrote on 24 mei 2006 in
microsoft.public.inetserver.asp.general:
[color=blue]
> Hello all.
>
> There is what i would like to do, I have a page that pulls all the
> hours for our staff over a given period calculated them and reports
> back on 15 different colums and is aproximatly 500 individual rows of
> data for a table. Now as you could imagine that is a night mare to look
> at for anyone, i have done a few things to make remeber which columns
> are which however a simple Solution would be to the top row, or rows i
> define stay constantly at the top as your scroll down.
>
> This is classic ASP and not ASP.NET, I can find alot of resources for
> ASP.NET but nothing for ASP.
>
> I have considered Frames, but who really wants to mess around with that
> ad there are alot of controls at the top of the page that manipulate
> the data.
>
> Also i have heard of using JavaScript or CSS, Has anyone achieved this
> before?[/color]
This is not a serversode/ASP solution you are after,
so realy off-topic here.
Please continue on a clientside html or css NG
==========
Give the top row a seperate <table> and have the content rows
in a table with a fixed height, so that a scrollbar will develop if the
table row number exeeds the set height.
Specify each td width:??px; correctly and use table-layout:fixed; for these
tables.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) | 
May 27th, 2006, 06:25 AM
| | | Re: Freeze Table Headers.
Hi Nico,
Here is code for you.. Just modify it and its your.
<table border="1" width=500 cellpadding=0 cellspacing=0>
<tr>
<td width="25%">First</td>
<td width="25%">Second</td>
<td width="25%">Third</td>
<td width="25%">Fourth</td>
</tr>
<tr>
<td colspan="4">
<div style="position: absolute;height:227px;overflow:auto;">
<table width="500" border="1" ID="Table1" cellpadding=0
cellspacing=0>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>
</div>
</td>
</tr>
</table> | 
May 29th, 2006, 01:05 PM
| | | Re: Freeze Table Headers.
"vicky" <vicky_rawat@yahoo.com> wrote in message
news:1148707513.445205.310030@y43g2000cwc.googlegr oups.com...[color=blue]
> Hi Nico,
>
> Here is code for you.. Just modify it and its your.
>
> <table border="1" width=500 cellpadding=0 cellspacing=0>
> <tr>
> <td width="25%">First</td>
> <td width="25%">Second</td>
> <td width="25%">Third</td>
> <td width="25%">Fourth</td>
> </tr>
> <tr>
> <td colspan="4">
> <div style="position: absolute;height:227px;overflow:auto;">
> <table width="500" border="1" ID="Table1" cellpadding=0
> cellspacing=0>
> <tr>
> <td width="25%">1</td>
> <td width="25%">2</td>
> <td width="25%">3</td>
> <td width="25%">4</td>
> </tr>
> <tr>
> <td width="25%">1</td>
> <td width="25%">2</td>
> <td width="25%">3</td>
> <td width="25%">4</td>
> </tr>
> <tr>
> <td width="25%">1</td>
> <td width="25%">2</td>
> <td width="25%">3</td>
> <td width="25%">4</td>
> </tr>
> <tr>
> <td width="25%">1</td>
> <td width="25%">2</td>
> <td width="25%">3</td>
> <td width="25%">4</td>
> </tr>
> <tr>
> <td width="25%">1</td>
> <td width="25%">2</td>
> <td width="25%">3</td>
> <td width="25%">4</td>
> </tr>
> <tr>
> <td width="25%">1</td>
> <td width="25%">2</td>
> <td width="25%">3</td>
> <td width="25%">4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> <td>4</td>
> </tr>
> </table>
> </div>
> </td>
> </tr>
> </table>[/color]
This simple example appears to work but will fail in the real world because
the column widths in the 'header' table may well not match the column widths
in the 'body' table. | 
May 29th, 2006, 01:15 PM
| | | Re: Freeze Table Headers.
Anthony Jones wrote on 29 mei 2006 in
microsoft.public.inetserver.asp.general:
[color=blue][color=green]
>> </tr>
>> <tr>
>> <td>1</td>
>> <td>2</td>
>> <td>3</td>
>> <td>4</td>
>> </tr>
>> </table>
>> </div>
>> </td>
>> </tr>
>> </table>[/color]
>
> This simple example appears to work but will fail in the real world
> because the column widths in the 'header' table may well not match the
> column widths in the 'body' table.[/color]
use:
table.t {table-layout:fixed;}
However I till fail to see the ASP-significance.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) | 
May 29th, 2006, 02:45 PM
| | | Re: Freeze Table Headers.
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
news:Xns97D291688FBE9eejj99@194.109.133.242...[color=blue]
> Anthony Jones wrote on 29 mei 2006 in
> microsoft.public.inetserver.asp.general:
>[color=green][color=darkred]
> >> </tr>
> >> <tr>
> >> <td>1</td>
> >> <td>2</td>
> >> <td>3</td>
> >> <td>4</td>
> >> </tr>
> >> </table>
> >> </div>
> >> </td>
> >> </tr>
> >> </table>[/color]
> >
> > This simple example appears to work but will fail in the real world
> > because the column widths in the 'header' table may well not match the
> > column widths in the 'body' table.[/color]
>
> use:
>
> table.t {table-layout:fixed;}
>[/color]
Yes the solution you've already given is the only reliable one I've found so
far.
[color=blue]
> However I till fail to see the ASP-significance.[/color]
Yes you've said that already. If I were a computer I would probably just
ignore the message or throw an error. However as a human I can see how
someone could think that the question was relevant (even though there are
even better matches for the question).
[color=blue]
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)[/color] | 
May 30th, 2006, 06:45 PM
| | | Re: Freeze Table Headers.
Hi,
There will not be any problem, Just use this logic in loop to create
columns dynamically, and as the width's I have used in %, so will be
adjusted automatically. | 
May 31st, 2006, 10:45 AM
| | | Re: Freeze Table Headers.
vicky wrote on 30 mei 2006 in microsoft.public.inetserver.asp.general:
[color=blue]
> There will not be any problem, Just use this logic in loop to create
> columns dynamically, and as the width's I have used in %, so will be
> adjusted automatically.[/color]
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers. <http://www.safalra.com/special/googlegroupsreply/>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) | 
May 31st, 2006, 05:15 PM
| | | Re: Freeze Table Headers.
"vicky" <vicky_rawat@yahoo.com> wrote in message
news:1149010988.600971.22600@u72g2000cwu.googlegro ups.com...[color=blue]
> Hi,
> There will not be any problem, Just use this logic in loop to create
> columns dynamically, and as the width's I have used in %, so will be
> adjusted automatically.
>[/color]
I'm not sure what it is that 'will not be a problem'. Fundamentally though
the column widths of 25% in your first header table and the 25% column
widths in second data table do not strictly have to be the same actual width
when resolved to pixels. Indeed with a pixel border your solution is
already slightly misalligned. | 
May 31st, 2006, 05:25 PM
| | | Re: Freeze Table Headers.
Anthony Jones wrote:[color=blue]
> "vicky" <vicky_rawat@yahoo.com> wrote in message
> news:1149010988.600971.22600@u72g2000cwu.googlegro ups.com...[color=green]
>> Hi,
>> There will not be any problem, Just use this logic in loop to create
>> columns dynamically, and as the width's I have used in %, so will be
>> adjusted automatically.
>>[/color]
>
> I'm not sure what it is that 'will not be a problem'. Fundamentally
> though the column widths of 25% in your first header table and the
> 25% column widths in second data table do not strictly have to be the
> same actual width when resolved to pixels. Indeed with a pixel
> border your solution is already slightly misalligned.[/color]
Not to mention what happens when the scrollbar appears ...
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup. | 
June 1st, 2006, 06:35 PM
| | | Re: Freeze Table Headers.
Ok, send me your code and I will get it work for u.
Anthony Jones wrote:[color=blue]
> "vicky" <vicky_rawat@yahoo.com> wrote in message
> news:1149010988.600971.22600@u72g2000cwu.googlegro ups.com...[color=green]
> > Hi,
> > There will not be any problem, Just use this logic in loop to create
> > columns dynamically, and as the width's I have used in %, so will be
> > adjusted automatically.
> >[/color]
>
> I'm not sure what it is that 'will not be a problem'. Fundamentally though
> the column widths of 25% in your first header table and the 25% column
> widths in second data table do not strictly have to be the same actual width
> when resolved to pixels. Indeed with a pixel border your solution is
> already slightly misalligned.[/color] | 
June 1st, 2006, 09:05 PM
| | | Re: Freeze Table Headers.
We weren't saying we couldn't do it ... just that it was not as easy as
you made it sound.
vicky wrote:[color=blue]
> Ok, send me your code and I will get it work for u.
> Anthony Jones wrote:[color=green]
>> "vicky" <vicky_rawat@yahoo.com> wrote in message
>> news:1149010988.600971.22600@u72g2000cwu.googlegro ups.com...[color=darkred]
>>> Hi,
>>> There will not be any problem, Just use this logic in loop to create
>>> columns dynamically, and as the width's I have used in %, so will be
>>> adjusted automatically.
>>>[/color]
>>
>> I'm not sure what it is that 'will not be a problem'. Fundamentally
>> though the column widths of 25% in your first header table and the
>> 25% column widths in second data table do not strictly have to be
>> the same actual width when resolved to pixels. Indeed with a pixel
>> border your solution is already slightly misalligned.[/color][/color]
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup. | 
June 4th, 2006, 07:05 AM
| | | Re: Freeze Table Headers.
Hey, I was just trying to help, if my language made some
misunderstanding, then I am sorry.
Bob Barrows [MVP] wrote:[color=blue]
> We weren't saying we couldn't do it ... just that it was not as easy as
> you made it sound.
>
> vicky wrote:[color=green]
> > Ok, send me your code and I will get it work for u.
> > Anthony Jones wrote:[color=darkred]
> >> "vicky" <vicky_rawat@yahoo.com> wrote in message
> >> news:1149010988.600971.22600@u72g2000cwu.googlegro ups.com...
> >>> Hi,
> >>> There will not be any problem, Just use this logic in loop to create
> >>> columns dynamically, and as the width's I have used in %, so will be
> >>> adjusted automatically.
> >>>
> >>
> >> I'm not sure what it is that 'will not be a problem'. Fundamentally
> >> though the column widths of 25% in your first header table and the
> >> 25% column widths in second data table do not strictly have to be
> >> the same actual width when resolved to pixels. Indeed with a pixel
> >> border your solution is already slightly misalligned.[/color][/color]
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.[/color] | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 205,338 network members.
|