Deprecated: Function set_magic_quotes_runtime() is deprecated in /home4/mfoster/public_html/cb/forums/include/common.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 34
Cross-Browser.com / Edit xTableHeaderFixed to always be visible?

Cross-Browser.com

X Library Forums

You are not logged in.

Announcement

New user registration is currently disabled.

#1 January 31, 2011 3:43:03 pm

slackhead
New Member
Registered: January 31, 2011
Posts: 2

Edit xTableHeaderFixed to always be visible?

Hi, I came across xTableHeaderFixed yesterday while looking for fixed theads. What I would like to do is to have the floating thead always visible and I've tried a few things in the js but the sizes always come out wrong, and my javascript is a bit lacking to know what to change.

I guess the copyCssWidth is the function that does the sizing but no matter where I call it from I can't get it to work properly.

The reason I want to do this is that I've noticed a bit of flicker when you first begin to scroll, and my table is at top=0px so it wouldn't be a problem for layout etc to have the fixed header always visible.

Can anyone help?

Cheers

Last edited by slackhead (January 31, 2011 3:43:24 pm)

Offline

 

#2 February 1, 2011 11:18:18 am

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: Edit xTableHeaderFixed to always be visible?

Hi slackhead, Welcome to the forums!

Take a look at the demos that use the "header no-hide" feature (yOffset=0). Sounds like that should do it.

Thanks!

Offline

 

#3 February 1, 2011 11:20:13 am

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: Edit xTableHeaderFixed to always be visible?

For example, table 2 in this demo

Offline

 

#4 February 1, 2011 12:03:13 pm

slackhead
New Member
Registered: January 31, 2011
Posts: 2

Re: Edit xTableHeaderFixed to always be visible?

Great that does it. Many thanks!

Offline

 

Board footer

Powered by PunBB 1.2.15
Copyright © 2002–2005 Rickard Andersson

Expand Restore Select Format Eval Load