Home > Domino Tips > Developer > Domino > Making tabbed tables work on the Web
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DOMINO

Making tabbed tables work on the Web


Sven Abrahamsson
11.26.2001
Rating: -3.73- (out of 5) Hall of fame tip of the month winner


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Tabbed tables as rendered for the Web by Domino are pretty much a waste of time - basically they look terrible. If you've tried it, you'll know exactly what I mean. Never fear, however - include the code given here on a Domino form, and watch as tabbed tables become recognizable as... well, tabbed tables.



Code

FIRST, A FEW COMMENTS

The code below is written to support IE5+. I can pretty much guarantee it will require modification to work properly with Netscape.

A before-and-after example of the code may be found at:
http://members.ozemail.com.au/~jjrogers/tabs.html

USING THE CODE

The first thing you need to do, is pick an image to serve as the tab background. My sample image is available at: http://members.ozemail.com.au/~jjrogers/tabs.html. This image may be stored in your database as an image resource. If you're using a different image, you'll probably want to change the image name and tab height and width specified in the code below.

After this, there are two steps to applying the code. Firstly, include the following in the HTML Head Content of the form with which you're dealing:

"<style>" +

"   /* properties for the tabs themselves */ " +
"   div table tr td table tr td { " +
"      border:none; " +
"      border-width:1;	" +
"      background-image:url(tabimage.jpg); " +
"      width:90px ;" +
"      height: 22px;" +
"      } " +

"   /* formatting for text on the non-current tab text */ " +
"   div table tr td table tr td a { " +
"      color:black; " +
"      font:8pt Arial; " +
"      text-decoration:none;" +
"      }" +

"   /* formatting for mouseover on the non-current tab text */ " +
"   div table tr td table tr td a:HOVER { " +
"      color:black; " +
"      font:8pt Arial; " +
"      text-decoration:underline;" +
"      }" +

"   /* formatting for the current tab text */ " +
"   div table tr td table tr td b { " +
"      color:black; " +
"      font:8pt Arial; " +
"      font-weight: bold; " +
"      }" +

"   /* formatting for the table that contains the tabs */ " +
"   div table tr td table { " +
"      border-width:0; " +
"      }" +

"</style>"

Next, put a <div> tag immediately before the tabbed table on the form, and a </div> tag after it. Mark these tags as pass-thru HTML, of course.

That's it. Again, a before-and-after example of this may be found at:
http://members.ozemail.com.au/~jjrogers/tabs.html

A BRIEF DISCUSSION

The overall intention here was to provide a means by which the tabbed tables available in Domino could be practically used, with a minimum of overhead in initial development, and more particularly in maintenance.

CSS is used to provide the formatting, and contextual selectors are used to determine which elements are subject to this formatting. The <div> tags are used to limit the page elements to which the formatting is applied. However, if there you have tables within tabbed tables, you might encounter some unwanted application of styles, unless you apply alternative formatting explicitly to those elements.


Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Domino
Mimic Lotus Notes Domino application functionality on the Web
A single form to view and edit any Lotus Notes document
DECS and DCR external data access considerations
How to create non-scrolling Lotus Domino view headers on the Web
Disabling the 'Submit' button on a form
An easier way to update a rich text field
Results from Default Notes Search have # of responses in brackets
Lotus Notes/Domino veteran offers comprehensive list of app dev tools
Notes to XML. . .and back again
Creating thumbnail images using LS2J in LotusScript

Development Topics
Lotus Notes/Domino veteran offers comprehensive list of app dev tools
Achiever finalist: Service (requests) with a smile
IBM has Rational take lead in development tool integration
IBM Lotus lays out Java roadmap for Domino developers
Domino 6.0.3 ready for download
Tools developer: Stick with Domino now
Coming soon: New Web RAD tool
WebSphere toolkit may be tough sell for Lotus
Domino blogs: Collaboration's next frontier?
PistolStar targets Lotus IM

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts