Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Excel-style Persistent Column(s)

Reply
Thread Tools

Excel-style Persistent Column(s)

 
 
Brett Merkey
Guest
Posts: n/a
 
      07-21-2007
Sean wrote:
|| I've got a table that is wider than the window, and I was wondering if
|| there is any way to setup some persistent columns and have the others
|| slide "behind" them...similar to what you can do in Excel. Any
|| thoughts?

One CSS solution for IE only:
http://home.tampabay.rr.com/bmerkey/...olumn-csv.html

The only way I know to do it x-browser is to use JavaScript, which is often
brittle and unsuitable to a production environment -- or to make two tables
look like one, with JavaScript to synchronize scrolling.



 
Reply With Quote
 
 
 
 
Tim Streater
Guest
Posts: n/a
 
      08-02-2007
In article <2da7n4->,
Toby A Inkster <> wrote:

> Sean wrote:
>
> > I've got a table that is wider than the window, and I was wondering if
> > there is any way to setup some persistent columns and have the others
> > slide "behind" them...similar to what you can do in Excel. Any
> > thoughts?

>
> If you were to ask about rows, then yes, this is possible -- you can use
> CSS to set an explicit height on TBODY and then scroll the overflow,
> allowing the THEAD and TFOOT to remain stationary. However, it has limited
> browser support IIRC.


Actually, I would be quite happy to be able to scroll table rows leaving
the header stationary. So, do you mean something like this?

<tbody style="max-height: 200px; overflow: scroll;">
 
Reply With Quote
 
 
 
 
Toby A Inkster
Guest
Posts: n/a
 
      08-03-2007
Tim Streater wrote:

> Actually, I would be quite happy to be able to scroll table rows leaving
> the header stationary. So, do you mean something like this?
>
> <tbody style="max-height: 200px; overflow: scroll;">


Yep -- but as I said, browser support is limited.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 43 days, 13:44.]

Command Line Interfaces, Again
http://tobyinkster.co.uk/blog/2007/0...nd-line-again/
 
Reply With Quote
 
Tim Streater
Guest
Posts: n/a
 
      08-03-2007
In article <n7bbo4->,
Toby A Inkster <> wrote:

> Tim Streater wrote:
>
> > Actually, I would be quite happy to be able to scroll table rows leaving
> > the header stationary. So, do you mean something like this?
> >
> > <tbody style="max-height: 200px; overflow: scroll;">

>
> Yep -- but as I said, browser support is limited.


Worse than that

I did a bit of a search and found some working example, but many seemed
to require large amounts of javascript and others some amount of creepy
css. I notice my books only hint that this is the purpose of tbody and
don't go further.

Bit of a disappointment, really, I would have thought there were many
instances where it would be useful.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistent field and Persistent properties - difference gk Java 7 10-12-2010 09:43 PM
Cisco dialer-persistent reconnect delay Sascha E. Pollok Cisco 1 03-20-2006 06:49 PM
why's my bridge un-persistent? dmorgan1 Wireless Networking 0 08-02-2005 07:50 AM
PIX to PIX Easy VPN: how to make connection persistent / auto-reconnect ?? [iMpLoDe] Cisco 4 01-17-2005 05:19 AM
Web Framework with stateful sessions / persistent object space? Marc Floessel Perl 0 07-09-2004 10:04 AM



Advertisments