Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 29th, 2004, 01:24 PM
Registered User
 
Join Date: Nov 2004
Location: Woodland Hills, CA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Table Links

I am working with tables consisting of 40 to 60 fields and in some cases 100-300 records. Because of the large number of columns I have to abbreviate the column headings. Therefore, I need a way to call up a more detailed description of the column headings. I can't find a simple way to to click on a column heading and then display a detailed description of that heading. That is, I need a relatively simple way to link to a rectangular-shaped box at the top of the database table that describes the particular column in detail.

In addition, I need to link to "PDF" files for each of the records in the database. How can I do that?

I have the WROX "HTML 4.01 Programmer's Reference," but I can't seem to "connect the dots" for the required information.

Any suggestions would be greatly appreciated.
  #2 (permalink)  
Old November 29th, 2004, 01:37 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Maybe you can use a tooltip (on Windows and other OSes, that's a yellow square box that appears when you hold your mouse over a specific element)?

In HTML, most (all??) elements have a title attribute that you can use:

<td title="This is a long description">Short Desc.</td>

Linking to a PDF is exactly the same as linking to other content:

<a href="YourFile.pdf">Download</a>

If you want to open the pdf in a new window, add a target="_blank" attribute:

<a href="YourFile.pdf" target="_blank">Download</a>


HtH,

Imar
  #3 (permalink)  
Old November 30th, 2004, 06:38 AM
Friend of Wrox
 
Join Date: Mar 2004
Location: Bhopal, MP, India.
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

if u've no problem fancy-ing with javascript, visit:
http://dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
http://dynamicdrive.com/dynamicindex5/dhtmltooltip2.htm



Similar Threads
Thread Thread Starter Forum Replies Last Post
Table cells as links gjeardle HTML Code Clinic 16 January 24th, 2007 12:08 PM
Only some images must have links brettdalldorf ASP.NET 1.0 and 1.1 Basics 0 August 7th, 2005 08:49 AM
links in table fields (td) amc Dreamweaver (all versions) 0 August 30th, 2004 09:20 PM
Addling table links from VB MoyesBlue Crystal Reports 0 May 20th, 2004 04:36 AM
Broken Links kilika Forum and Wrox.com Feedback 1 September 15th, 2003 10:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.