I real love your web and I trying to do tabbed but I do have idea to do it and I love what you have done above
When I set out to design a tabbed interface generator, my primary goal was to create an interface that would load all the data in each tab in a single page request. This would allow the user to click on each tab in the interface and instantly see the data on that tab without waiting for it to load. This requirement necessitated the use of DHTML.
Bascially, DHTML or Dynamic HTML, uses a combination of HTML, CSS, and Javascript to alter the display in the browser after the page has been generated.
In order to make the visual interface as flexible as possible, I decided to use a CSS based design for the tabs. I found an excellent example of what I was looking for in an article on alistapart.com. The examples in the article provided almost everything I needed for the visual design. However, I thought that the user experience would be better if the tab control was self-contained, so I added CSS to add a box surrounding each tab. Warning: Version 0.1 is Internet Explorer Only.
Another problem with the example was the use of ID selectors for the tab control. The intent of their implementation was for a menu to be used as a website's primary navigation. In order to allow multiple tab controls on a single page, I changed the ID selectors to CLASS selectors, by simply changing the '#' signs to periods, and modifying the HTML to use class="classname" instead of id="idname".
Allowing the user to switch between tabs on the page without a reload requires several things to happen.
There are 3 files required to fully implement the system.
To produce a tab control, you use the DHTMLTab and DHTMLTabItem tags.
The DHTMLTab tag has 6 optional parameters. The default behaviors can be changed in the cfparam section of the custom tag.
The content of the tabs can be entered right into the 'content' attribute.
<cf_DHTMLTab>More complex displays are easy to create by generating the HTML first by using cfsavecontent.
Tab controls can be nested inside of other tabs.
<cf_DHTMLTab height="50" width="450">What famous speech is this?
Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal.
Now we are engaged in a great civil war, testing whether that nation or any nation so conceived and so dedicated can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting-place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But in a larger sense, we cannot dedicate, we cannot consecrate, we cannot hallow this ground. The brave men, living and dead who struggled here have consecrated it far above our poor power to add or detract. The world will little note nor long remember what we say here, but it can never forget what they did here.
It is for us the living rather to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us--that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion--that we here highly resolve that these dead shall not have died in vain, that this nation under God shall have a new birth of freedom, and that government of the people, by the people, for the people shall not perish from the earth.
#i#
Unfortunately some of the CSS display features work best in IE. I hope to make future improvements including:
There are still a few bugs with how the focus state is maintained in the Javascript array, but I hope to have those worked out soon. Watch http://www.nmconsulting.us/tags/ for updates.
Last updated 10/25/2005 1:00 pm.
I real love your web and I trying to do tabbed but I do have idea to do it and I love what you have done above