473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Fixing topmost and leftmost rows on scrollable table...

Hello,

I have a table:

<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber1">
<tr>
<td width="10%">&nbsp;</td>
<td width="10%" bgcolor="#C0C0C0">xa</td>
<td width="10%" bgcolor="#C0C0C0">xb</td>
<td width="10%" bgcolor="#C0C0C0">xc</td>
<td width="10%" bgcolor="#C0C0C0">xd</td>
<td width="10%" bgcolor="#C0C0C0">xe</td>
</tr>
<tr>
<td width="10%" bgcolor="#C0C0C0">ya</td>
<td width="10%">1</td>
<td width="10%">2</td>
<td width="10%">3</td>
<td width="10%">4</td>
<td width="10%">5</td>
</tr>
<tr>
<td width="10%" bgcolor="#C0C0C0">yb</td>
<td width="10%">1</td>
<td width="10%">2</td>
<td width="10%">3</td>
<td width="10%">4</td>
<td width="10%">5</td>
</tr>
<tr>
<td width="10%" bgcolor="#C0C0C0">yc</td>
<td width="10%">1</td>
<td width="10%">2</td>
<td width="10%">3</td>
<td width="10%">4</td>
<td width="10%">5</td>
</tr>
<tr>
<td width="10%" bgcolor="#C0C0C0">yd</td>
<td width="10%">1</td>
<td width="10%">2</td>
<td width="10%">3</td>
<td width="10%">4</td>
<td width="10%">5</td>
</tr>
<tr>
<td width="10%" bgcolor="#C0C0C0">ye</td>
<td width="10%">1</td>
<td width="10%">2</td>
<td width="10%">3</td>
<td width="10%">4</td>
<td width="10%">5</td>
</tr>
</table>

I would like to somehow make it so that I can scroll
up/down/left/right on this table (if it is too big for the
encapsulating space), while keeping the top-most and left-most columns
fixed. The behaviour would be similar to when you pin rows and
columns in Microsoft Excel. The data to be displayed in this table
will be coming from an OLAP cube, so it is possible (likely) that
there will be headers on the top AND the left of the grid.

I've tried various HTML, JavaScript and DHTML approaches and none seem
to work. My target browser is IE 6.0 SP1.

Is this even possible?

Thanks,
Leo Hart
Jul 20 '05 #1
6 2011
In article <b6*************************@posting.google.com> ,
le******@fmr.com enlightened us with...

Is this even possible?


That depends on how much control you have over what generates the html.

I myself would have a table encompassing three tables - one table for
the header rows, one for the header columns, and a scrollable table as
the body.
But I use JSP and can easily do this.
--
--
~kaeli~
Does the name Pavlov ring a bell?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
> I would like to somehow make it so that I can scroll
up/down/left/right on this table (if it is too big for the
encapsulating space), while keeping the top-most and left-most columns
fixed. The behaviour would be similar to when you pin rows and
columns in Microsoft Excel.
I've tried various HTML, JavaScript and DHTML approaches and none seem
to work. My target browser is IE 6.0 SP1.
Is this even possible?

Yes, with the help of CSS you do just about anything.

http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html

Jul 20 '05 #3
Brett, this is THE best IE excel scrolling I have seen. I have been able to
achieve this to where the results looks almost the same, but the amount of
code and CSS in your example is relatively simple comparatively. While I
took a similar approach for the vertical scrolling, your fixed first column
for horizontal scrolling is much easier. Thanks for sharing. On I side
note, I hope that one day all the major, modern browsers will support
scrollable table body tags...much easier.

John

"Brett Merkey" <bm*****@tampabay.rr.com> wrote in message
news:aF*******************@twister.tampabay.rr.com ...
I would like to somehow make it so that I can scroll
up/down/left/right on this table (if it is too big for the
encapsulating space), while keeping the top-most and left-most columns
fixed. The behaviour would be similar to when you pin rows and
columns in Microsoft Excel.
I've tried various HTML, JavaScript and DHTML approaches and none seem
to work. My target browser is IE 6.0 SP1.
Is this even possible?

Yes, with the help of CSS you do just about anything.

http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html

Jul 20 '05 #4
> http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html
Brett, this is THE best IE excel scrolling I have seen. I have been able to achieve this to where the results looks almost the same, but the amount of
code and CSS in your example is relatively simple comparatively. While I
took a similar approach for the vertical scrolling, your fixed first column for horizontal scrolling is much easier. Thanks for sharing. On I side
note, I hope that one day all the major, modern browsers will support
scrollable table body tags...much easier.

John

Thanks. Simplicity is my specialty. :-D
Yes, it's too bad that browsers (esp. IE) don't make it easier to code
table usability conveniences for screen display and print. Getting
repeating table headers and footers requires a bit of CSS and HTML
choreography as well.

Brett
Jul 20 '05 #5
Hi Guys,
Thanks to you all for your input. Brett, your example is exactly what I'm
looking for. However, I'm a little confused by how you populate the table
data. It looks like you're using this object:

<object ID=tdcData CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME="DataURL" VALUE="grades2.csv">
<PARAM NAME="UseHeader" VALUE="true">
</object>

Unfortunately, I'll be using J2EE JSP pages to create this page (I haven't
been able to convince these guys to us .NET yet). How would I populate this
table using traditional methods (ie: using a for-loop to build out the
rows)? Is it as easy as just writing out the repeating rows like:

<tr>
<td><span datafld="name">Joe Schmo</span></td>
<td><span datafld="major">Underwater Basket-Weaving</span></td>
<td><span datafld="sex">Not lately</span></td>
<td><span datafld="english">Yes. Cheerio</span></td>
<td><span datafld="japanese">Domo Arigato Mr. Roboto</span></td>
<td><span datafld="calc"></span>Y</td>
<td><span datafld="geometry">Y</span></td>
</tr>
Thanks,
Leo

"Brett Merkey" <bm*****@tampabay.rr.com> wrote in message
news:tK********************@twister.tampabay.rr.co m...
http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html
Brett, this is THE best IE excel scrolling I have seen. I have been able to
achieve this to where the results looks almost the same, but the amount

of code and CSS in your example is relatively simple comparatively. While I took a similar approach for the vertical scrolling, your fixed first

column
for horizontal scrolling is much easier. Thanks for sharing. On I side note, I hope that one day all the major, modern browsers will support
scrollable table body tags...much easier.

John

Thanks. Simplicity is my specialty. :-D
Yes, it's too bad that browsers (esp. IE) don't make it easier to code
table usability conveniences for screen display and print. Getting
repeating table headers and footers requires a bit of CSS and HTML
choreography as well.

Brett

Jul 20 '05 #6
> Thanks to you all for your input. Brett, your example is exactly what I'm
looking for. However, I'm a little confused by how you populate the table
data. It looks like you're using this object:

<object ID=tdcData CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> <PARAM NAME="DataURL" VALUE="grades2.csv">
<PARAM NAME="UseHeader" VALUE="true">
</object>

Unfortunately, I'll be using J2EE JSP pages to create this page (I haven't
been able to convince these guys to us .NET yet). How would I populate this table using traditional methods (ie: using a for-loop to build out the
rows)?

In the example, I populated the table using IE's client-side ability to read
data from a delimited text file and automatically populate a table based
on the one row "template."

If you are using server-side technology to populate the table, yes, in this
case
you would use a JSP tag to iterate writing rows of HTML. You would not
use the "datafld" lingo I used. Hope this helps. I leave the JSP to the Java
guys.

Brett
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
25
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are...
1
by: david.joyce | last post by:
I am aware that v7 Static Scrollable Cursors do not work with pseudo-conversational CICS because of the temp work file being destroyed but will v8 Dynamic Scrollable Cursors work with...
2
by: RJN | last post by:
Hi Sorry for posting again. I have a datagrid which is put inside a div tag to make it scrollable. I need to page the datagrid. The page numbers appear at the bottom of the datagrid and has...
3
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of...
1
by: Keimo Repo | last post by:
Hello I would need some advice, even just speculations... A customer of ours insists on a couple of customer specific design features for our existing multi-customer web application: - A...
6
by: abctech | last post by:
Helo Friends, I am a novice Java programmer, I'm working with Jsp + Javascript to develop a web application.I only have basic Html knowledge and I mostly use "FrontPage" to develop my web pages...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
1
by: Chris Date | last post by:
Hi I´ve got a problem with my scrollable table. It´s a weekscheduler table with 7 columns ( weekdays ) and dynamicaly rows ( time ). So the rows starts at 0:00am and ends at 12:00pm ( 24:00h )....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.