ColdFusion Tips and Tutorials

ColdFusion Tips and Tutorials. Tips on ColdFusion, AJAX, CSS, JavaScript, HTML, Design, and more.

CFUnited Developer Conference 2010
Use this code TIPSCUST to get $100 off your registration @ CFUnited! We'll see you There!


ColdFusion Tips
Page 1 2 3
148 ColdFusion, Ajax, FuseBox, Tips, and Tut
147 Included Point of View
146 Javascript - OnFocus
145 Nathan's Rules of Professional Web Desig
144 Universal Server-Side Check | Bandwidth
143 Meeting Schedule | Identification Sessio
142 Breaking Frames Without Javascript
141 Unreal Forms
140 Screen Resolution
139 Human Help
138 Better Server-Side Validation
137 Automatic Server-Side Validation
136 Regular Expression Laboratory,ColdFusion
135 Rank-Ordered Site Search
134 Building Cryptograms
133 Well-Formed Includes
132 Grouping Families for Visits
131 Display Families on a Map Grid
130 Slide Shows
129 Determine Your Database Engine
128 ColdFusion in Context: Maxlength Lies
127 Something Extra
126 Parsing Database Structure from Data Def
125 Valid Values Maintenance
124 Print 1
123 Hide Session Id
122 Downsizing Data to Access
121 Time to Load a Page, FuseBox 4
120 Order and Rank by Subset
119 Warn through E-mail & Update on Paste Sp
118 Paste Spreadsheets, ColdFusion Component
117 Review Files Having Fixed-Length Fields
116 Organized Help
115 Sequence Slider
114 Bad Bits
113 Logical Deduction
112 Whiteout
111 Forced Navigation
110 Managing Permissions
109 Time Travel
108 Test First
107 Get Distance Between Map Coordinates
106 Validating Checkboxes
105 Matrix Manipulation
104 Field Help
103 Fake Object Not Found
102 Rank Order Correlation Coefficient
101 From Calling Pairs to Calling Tree
100 Posting Notice
99 Logout Persuasion
98 Release Session Memory
97 Use Identically Named Fields
96 Web Bug
95 Password Generation
94 Core Queries
93 Use CFFTP
92 Insert, Update, and Delete
91 Stack
90 T-Value
89 Bulk Data Entry and E-mail Validation
88 Quick Reset
87 Design 1
86 Use CFFTP
85 Support Login with AutoPost
84 Login and Site Protection
83 XY Graphs in a Graphing Calculator
82 Read Encrypted Files
81 Showing Progress
80 Frugal Cross-Browser Javascript
79 Tabbed Folders
Page 1 2 3



Custom Search
ColdFusion TIPS PLUS


Issue 00079 http://www.cftipsplus.com

I. My Comments

II. ColdFusion In Context: Tabbed Folders
By R. Martin Ladner
martin.ladner@knology.net



In the Next Issue:
ColdFusion In Context: Frugal Cross-Browser Javascript



I. Comments:

Moving time.... Lots of FUN!!


Keep Coding,
Nathan Stanford
President/CEO
C.F. Concepts, Inc.
http://www.coldfusionmonthly.com
http://www.cftipsplus.com

If you have suggestions for articles send them to us.
If you would like to write for cftipsplus.com
send us an email to:

admin@cftipsplus.com

IF YOU WANT TO BE AN AUTHOR SEND IN YOUR COLDFUSION TIPS.

Remember this is a great way to get your name known in the
ColdFusion Community.



Advanced, Intensive ColdFusion Training!

Visit this site. If you have plans to get training here is a company that provides Advanced, Intensive ColdFusion Training. Check them out.

http://www.coldfusiontraining.com/index.cfm?ref=cftipsplus



CFM - The ColdFusion Monthly!
http://www.ColdFusionMonthly.com

By becoming a .CFM subscriber, you'll receive. ColdFusion information you will not find anywhere else:
Tips, tricks, techniques, strategies, and a wealth of knowledge you will be able to apply immediately to your work, all from established developers.

Monthly access to new articles written by industry-leading ColdFusion experts. A fully-functional application that accompanies each issue.

Full access to all issues, past and present (with a one year paid subscription). The chance to be seen in our "Community Spotlight" corner, which showcases new writers and emerging talent


If you have any suggestions please email me at cftips@nsnd.com.


II. ColdFusion in Context: Tabbed Folders
By R. Martin Ladner
martin.ladner@knology.net


Many Microsoft applications gather related options in a "folder" and have you click on a tab to select the folder you want to work with. Suppose you want to emulate that functionality in a Web page. One way to go about it is to combine a table with a style sheet. Use table cells as tabs, override the usual link appearance with a style sheet so clicking on the tab text will seem like selecting a folder, and color the cells for the tabs and folder body appropriately to give the feeling of folders in a file drawer. Here's how.

Build a Style Sheet for Links
The idea is to use links in the tabs without having the words wind up underlined or change color after a visit. A style sheet can override these characteristics. This style sheet defines what links ("a": the anchor tag) should look like in two modes: idle and hover. Setting text-decoration to none keeps links from being underlined. When the mouse is not on a link, it will be black and bold. When the mouse hovers over a link, its color will change, but it will retain the characteristics not explicitly changed. It will remain bold and not underlined. The page for each tab should start with this code.

<style>
a {text-decoration:none;color:black;font-weight:bold;}
a:hover {color:blue;}
</style>

Build the First Tab
The convention of folders in a file cabinet is represented here by a table having multiple cells in its first row and a single cell spanning the table in its second row. The second row can of course have as many lines of text and controls as desired and can even use nested tables for formatting. The cell of the top row that represents the tab for THIS folder should be the same color as the body of the folder: the second row. The other cells should have slightly different colors so they don't merge with the body or with each other. The usual space between cells should also be removed. The cellspacing control does this for Internet Explorer; the border control is added to accommodate Netscape Navigator as well.
A word about colors is in order. David Sanders points out that HTML hex colors are controlled by three pairs of hex characters: a pair for red, a pair for green, and a pair for blue. Thinking of them this way will help you make small adjustments when your reference chart isn't handy.

Add this code to the previous code and save it as tab1.cfm.

<table cellspacing="0" border="0">
<td bgcolor="#EDEDED"><a href="tab1.cfm">Tab 1</a></td>
<td bgcolor="#CCCCCC"><a href="tab2.cfm">Tab 2</a></td>
<td bgcolor="#A9A9A9"><a href="tab3.cfm">Tab 3</a></td></tr>
<tr><td colspan="3" bgcolor="EDEDED"><br>
This information is displayed when you select Tab 1.
</td></tr>
</table>

Change a Copy for the Second and Third Tabs
Make a copy of tab1.cfm, rearrange the colors to put the body color in the middle, and call the result tab2.cfm. The tab code will look like this. Don't forget to change the text in the body as appropriate.

<td bgcolor="#CCCCCC"><a href="tab1.cfm">Tab 1</a></td>
<td bgcolor="#EDEDED"><a href="tab2.cfm">Tab 2</a></td>
<td bgcolor="#A9A9A9"><a href="tab3.cfm">Tab 3</a></td></tr>

Do it one more time and call the result tab3.cfm. The tab code will look like this.


<td bgcolor="#CCCCCC"><a href="tab1.cfm">Tab 1</a></td>
<td bgcolor="#A9A9A9"><a href="tab2.cfm">Tab 2</a></td>
<td bgcolor="#EDEDED"><a href="tab3.cfm">Tab 3</a></td></tr>

Review and Refine
To see the result, browse any of these files and click tabs to move between them, then imagine how the effect could be better. Some colors (purple, for example), tend to shrink away from others and therefore may not work well in this context; however, you certainly don't need to stick with gray tones. Images would be nice and can be joined to text using style sheets so clicking on the image or the text would select the page. Use this interface with ColdFusion controls; drive it with a database to automatically generate tabbed folders for your top five sales items. Enjoy!

=Marty=


Publisher and Creator:
Nathan Stanford,
admin@cftipsplus.com
C.F. Concepts, Inc.
http://www.cftipsplus.com

Macromedia and ColdFusion are U.S. registered trademarks.


Copyright (c) 2000 - 2001 C.F. Concepts, Inc.
CFTIPSPLUS.COM and NSND.COM

Permission is granted to circulate this publication via
MANUAL forwarding by email to friends provided that the text is
forwarded in its entirety and no fee is charged.

Photo of Nathan Stanford
Nathan Stanford
LinkedIn

R. Marty Ladner's
Site