472,954 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

ToolTips and Tables -- how can I have tooltips on the cells of a column?

I could use your help. I need to add tooltips to each column of an
HTML table, for the entire column of cells. I want to add a single
element to the table, and have that one element represent the tooltip
for all the cells in the column.

I'm doing the brute-force method right now of adding a tooltip to every
<tdin the table. The problem there is that the HTML is ballooning in
size as a result (see an example below).

Any ideas, examples or help on this?

<tbody>
<tr>
<td class="bluedata" title="Column 1 ToolTip"Row 1</td>
<td class="yellowdata" title="Column 2 ToolTip"Row 1</td>
<td class="bluedata" title="Column 3 ToolTip"Row 1</td>
</tr>
<tr>
<td class="bluedata" title="Column 1 ToolTip"Row 2</td>
<td class="yellowdata" title="Column 2 ToolTip"Row 2</td>
<td class="bluedata" title="Column 3 ToolTip"Row 2</td>
</tr>
.......
<tr>
<td class="bluedata" title="Column 1 ToolTip"Row 140</td>
<td class="yellowdata" title="Column 2 ToolTip"Row
140</td>
<td class="bluedata" title="Column 3 ToolTip"Row 140</td>
</tr>

Thanks,
Frank

Dec 7 '06 #1
2 11952

Frank wrote:
I could use your help. I need to add tooltips to each column of an
HTML table, for the entire column of cells. I want to add a single
element to the table, and have that one element represent the tooltip
for all the cells in the column.

I'm doing the brute-force method right now of adding a tooltip to every
<tdin the table. The problem there is that the HTML is ballooning in
size as a result (see an example below).

Any ideas, examples or help on this?

<tbody>
<tr>
<td class="bluedata" title="Column 1 ToolTip"Row 1</td>
<td class="yellowdata" title="Column 2 ToolTip"Row 1</td>
<td class="bluedata" title="Column 3 ToolTip"Row 1</td>
</tr>
<tr>
<td class="bluedata" title="Column 1 ToolTip"Row 2</td>
<td class="yellowdata" title="Column 2 ToolTip"Row 2</td>
<td class="bluedata" title="Column 3 ToolTip"Row 2</td>
</tr>
.......
<tr>
<td class="bluedata" title="Column 1 ToolTip"Row 140</td>
<td class="yellowdata" title="Column 2 ToolTip"Row
140</td>
<td class="bluedata" title="Column 3 ToolTip"Row 140</td>
</tr>

Thanks,
Frank
Well one idea would be to use nested tables, having a 3 column one
contain a one column table in each of its 3 columns:"column1" table
date in first TD, "column2" table date in second TD, etc, with the
appropriate tooltip on the main table's 3 TDs.

But... why are you concerned about "ballooning HTML"? I wouldn't worry
about that, unless it was somehow interferring with performance which
is unlikely in this scenario.

Hope that helps,
Blue Apricot 416

Dec 7 '06 #2
Frank <fx*******@gmail.comwrote:
news: 11*********************@n67g2000cwd.googlegroups.c om
I could use your help. I need to add tooltips to each column of an
HTML table, for the entire column of cells. I want to add a single
element to the table, and have that one element represent the tooltip
for all the cells in the column.

I'm doing the brute-force method right now of adding a tooltip to
every <tdin the table. The problem there is that the HTML is
ballooning in size as a result (see an example below).

Any ideas, examples or help on this?
[snip]
<td class="bluedata" title="Column 1 ToolTip"Row 1</td>
<td class="yellowdata" title="Column 2 ToolTip"Row 1</td>
<td class="bluedata" title="Column 3 ToolTip"Row 1</td>
[snip]
Javascript for the ones that have javascript enabled, and (at least for
opera users) have tooltips enabled.

Some of the bloat can be removed if the method of applying the td
style is changed, I see no real need to declare the inline class. Show
what your bluedata & yellowdata classes are if you are interested.

--
BootNic Thursday, December 07, 2006 5:04 PM

All things come to him who waits - provided he knows what he is
waiting for.
*Woodrow T. Wilson*

Dec 7 '06 #3

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

Similar topics

44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
4
by: Matt Stanley | last post by:
I am trying to build a page that scales to fit the browser window regardless of size or resolution. The navigation on the top of the page is framed in dark red/brown using CSS with a background...
2
by: Stevie_mac | last post by:
I'm probably missing something real easy here but... How do i set Tooltips to the header cells in a datagrid? Detail... Datagrid is databound, using non template named columns with 'Create...
0
by: Jerry K via DotNetMonster.com | last post by:
I'm creating a pivot table using vb.net and the data is from sqlserver (desktop). I have been successful at creating the pivot table, which includes a 'date' column field. I'd like to group the...
53
by: Alan Silver | last post by:
Hello, I understand the issue that tables should be used for tabular data and not for layout, but I would like some clarification as to exactly what constitutes tabular data. For example, if...
2
by: jab3 | last post by:
Hello - I'm trying to implement a table that will allow the user to sort on each column, like many applicaitons that have tabular data (e-mail, song list, etc). It invovles grabbing the table,...
2
by: Scamjunk | last post by:
I have been desperately looking for a treeview-type solution for my problem for the past three weeks and have been greatly unsuccessful. I am totally new to the world of XSLT and I *don't know*...
4
by: jswill | last post by:
The main problems are: - adding rows to tables via appendChild is slow if there is markup in any cell. (My rows have only 3-8 cells) - the same markup seems to increase the "lag" time to...
24
by: Chris F.A. Johnson | last post by:
On 2008-07-09, Denis McMahon wrote: If the left-hand column contains any text, use em rather than px to size it. In CSS, less is more. Most problems are caused by specifying too much rather...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.